Group constructor

Group({
  1. required int id,
  2. required String name,
  3. required int suiteID,
  4. int? parentID,
  5. required int testCount,
  6. int? line,
  7. int? column,
  8. String? url,
  9. required Metadata metadata,
})

A test suite corresponding to a loaded test file. The suite's ID is unique in the context of this test run. It's used elsewhere in the protocol to refer to this suite without including its full representation.

A suite's platform is one of the platforms that can be passed to the --platform option, or null if there is no platform (for example if the file doesn't exist at all). Its path is either absolute or relative to the root of the current package.

Implementation

factory Group({
  /// An opaque ID for the group.
  required int id,

  /// The name of the group, including prefixes from any containing groups.
  required String name,

  /// The ID of the suite containing this group.
  required int suiteID,

  /// The ID of the group's parent group, unless it's the root group.
  int? parentID,

  /// The number of tests (recursively) within this group.
  required int testCount,

  /// The (1-based) line on which the group was defined, or `null`.
  int? line,

  /// The (1-based) column on which the group was defined, or `null`.
  int? column,

  /// The URL for the file in which the group was defined, or `null`.
  String? url,

  /// This field is deprecated and should not be used.
  required Metadata metadata,
}) = _Group;