Releases: dart-lang/test
Releases · dart-lang/test
1.3.4
1.0.0
0.12.42
-
Add support for
solo
test and group. When the argument istrue
only tests
and groups marked as solo will be run. It is still recommended that users
instead filter their tests by using the runner argument-n
. -
Updated exported
package:matcher
to0.12.3
which includes these updates:-
Many improvements to
TypeMatcher
-
Can now be used directly as
const TypeMatcher<MyType>()
. -
Added a type parameter to specify the target
Type
.- Made the
name
constructor parameter optional and marked it deprecated.
It's redundant to the type parameter.
- Made the
-
Migrated all
isType
matchers toTypeMatcher
. -
Added a
having
function that allows chained validations of specific
features of the target type./// Validates that the object is a [RangeError] with a message containing /// the string 'details' and `start` and `end` properties that are `null`. final _rangeMatcher = isRangeError .having((e) => e.message, 'message', contains('details')) .having((e) => e.start, 'start', isNull) .having((e) => e.end, 'end', isNull);
-
-
Deprecated the
isInstanceOf
class. UseTypeMatcher
instead. -
Improved the output of
Matcher
instances that fail due to type errors.
-