currentTestName property

  1. @override
String get currentTestName
override

A getter named currentTestName that returns the current test name.

Implementation

@override
String get currentTestName {
  final testName = Invoker.current?.liveTest.individualName;
  return testName == null ? '' : testName.replaceAll(' ', '_').toLowerCase();
}