testClass property

String get testClass

Best-effort class label value for the test.

Implementation

String get testClass {
  if (groupPath.isNotEmpty) {
    return groupPath.last;
  }
  if (packagePath != null) {
    return p.basenameWithoutExtension(packagePath!);
  }
  return name;
}