group function

void group(
  1. Object description,
  2. void body(), {
  3. Object? skip,
  4. Object? testOn,
  5. Object? tags,
  6. Map<String, dynamic>? onPlatform,
  7. int? retry,
})

Capture replacement for package:test's group().

Implementation

void group(
  Object description,
  void Function() body, {
  Object? skip,
  Object? testOn,
  Object? tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) {
  final state = _requireState('group');
  final frame = _GroupFrame(description.toString())
    ..tags.addAll(_normalizeTags(tags));
  state._stack.add(frame);
  try {
    body();
  } finally {
    state._stack.removeLast();
  }
}