TestGroup class Null safety

TestGroup is synonymous to group function. You can wrap multiple Tests in a TestGroup.

Example:

TestGroup('BMI', [
  HeightTest(),
]).execute();
Implemented types

Constructors

TestGroup(String name, List<Test<Object?, Object?>> tests, {String nameSuffix = ' -'})
const
TestGroup.empty()
Call this constructor when you extend TestGroup.
const

Properties

description String
Built from name and nameSuffix.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Used in building description.
final
nameSuffix String
Used in building description.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tests List<Test<Object?, Object?>>
List of tests to be run with in this group.
final

Methods

dispose() → dynamic
Runs once for every TestGroup.
override
disposeForEveryTest() → dynamic
Runs for every Test.
execute() → void
initialize() → dynamic
Runs once for every TestGroup.
override
initializeForEveryTest() → dynamic
Runs for every Test.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited