build method
Finalizes and returns the group being declared.
Note: The tests in this group must be run in a Invoker.guard context; otherwise, test errors won't be captured.
Implementation
Group build() {
_checkNotBuilt('build');
_built = true;
var entries = _entries.map((entry) {
if (_solo && !_soloEntries.contains(entry)) {
entry = LocalTest(
entry.name,
entry.metadata.change(skip: true, skipReason: 'does not have "solo"'),
trace: entry.trace,
location: entry.location,
() {},
);
}
return entry;
}).toList();
return Group(
_name ?? '',
entries,
metadata: _metadata,
trace: _trace,
location: _location,
setUpAll: _setUpAll,
tearDownAll: _tearDownAll,
);
}