Repository navigation
0.12.42
-
Add support for
solotest and group. When the argument istrueonly 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:matcherto0.12.3which 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
nameconstructor parameter optional and marked it deprecated.
It's redundant to the type parameter.
- Made the
-
Migrated all
isTypematchers toTypeMatcher. -
Added a
havingfunction 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
isInstanceOfclass. UseTypeMatcherinstead. -
Improved the output of
Matcherinstances that fail due to type errors.
-