buildPackageTestScopeId function

String buildPackageTestScopeId(
  1. String? packagePath,
  2. List<String> groupPath
)

Builds the Allure scope id for a package test group path.

Implementation

String buildPackageTestScopeId(String? packagePath, List<String> groupPath) {
  final scopeRoot = packagePath ?? '<unknown>';
  if (groupPath.isEmpty) {
    return 'group:$scopeRoot';
  }
  return 'group:$scopeRoot::${groupPath.join("::")}';
}