TestVariant<T> class

An abstract base class for describing test environment variants.

These serve as elements of the variants argument to testWidgets.

Use care when adding more testing variants: it multiplies the number of tests which run. This can drastically increase the time it takes to run all the tests.

Implementers

Constructors

TestVariant()
A const constructor so that subclasses can be const.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
values Iterable<T>
Returns an iterable of the variations that this test dimension represents. [...]
read-only

Methods

describeValue(T value) String
Returns the string that will be used to both add to the test description, and be printed when a test fails for this variation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setUp(T value) Future<Object>
A function that will be called before each value is tested, with the value that will be tested. [...]
tearDown(T value, covariant Object memento) Future<void>
A function that is guaranteed to be called after a value is tested, even if it throws an exception. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

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