group function

  1. @isTestGroup
void group(
  1. Object description,
  2. void body(), {
  3. dynamic skip,
  4. int? retry,
})

Creates a group of tests.

A group's description (converted to a string) is included in the descriptions of any tests or sub-groups it contains. setUp and tearDown are also scoped to the containing group.

If skip is a String or true, the group is skipped. If it's a String, it should explain why the group is skipped; this reason will be printed instead of running the group's tests.

Implementation

@isTestGroup
void group(Object description, void Function() body, { dynamic skip, int? retry }) {
  _maybeConfigureTearDownForTestFile();
  _declarer.group(description.toString(), body, skip: skip, retry: retry);
}