group function

FutureOr<void> group(
  1. String description,
  2. dynamic body()
)

Adds the tests contained in body to the current test group.

Implementation

FutureOr<void> group(String description, dynamic Function() body) {
  _enterGroup();
  print('group-$_groupCounter: $description');
  body();
  _leaveGroup();
}