group function
void
group(})
Drop-in replacement for package:test's group with Allure reporting.
Implementation
void group(
Object? description,
dynamic Function() body, {
String? testOn,
t.Timeout? timeout,
Object? skip,
Object? tags,
Map<String, dynamic>? onPlatform,
int? retry,
t.TestLocation? location,
@Deprecated('Debug only') bool solo = false,
}) {
_ensureAllureInstalled();
final name = description?.toString() ?? '';
final packagePath = resolvePackageTestPathFromDeclaration(
locationUri: location?.uri,
stackTrace: StackTrace.current,
);
PackageTestScopeRegistry.instance.pushGroup(
name,
packagePath: packagePath,
);
t.group(
description,
() {
try {
body();
} finally {
PackageTestScopeRegistry.instance.popGroup();
}
},
testOn: testOn,
timeout: timeout,
skip: skip,
tags: tags,
onPlatform: onPlatform,
retry: retry,
location: location,
solo: solo,
);
}