checks 0.3.0 checks: ^0.3.0 copied to clipboard
A framework for checking values against expectations and building custom expectations.
0.3.0 #
- Breaking Changes
- Remove the
Condition
class and theit()
utility. Replace calls to(it()..someExpectation())
with((it) => it.someExpectation())
.
- Remove the
- Add class modifiers to restrict extension of implementation classes.
0.2.2 #
- Return the first failure from
softCheck
andsoftCheckAsync
as documented, instead of the last failure when there are multiple failures. - Add example
because
usage and mention the "reason" name in the migration guide. - Add
ComparableChecks
with comparison expectations for subject types that implementComparable
.
0.2.1 #
- Add a link to file issues with feedback in the README.
0.2.0 #
- Breaking Changes
checkThat
renamed tocheck
.nest
andnestAsync
takeIterable<String> Function()
arguments forlabel
instead ofString
.- Async expectation extensions
completes
,throws
,emits
, andemitsError
no longer return aFuture<Subject>
. Instead they take an optionalCondition
argument which can check expectations that would have been checked on the returned subject. nestAsync
no longer returns aSubject
, callers must pass the followupCondition
to the nullable argument.- Remove the
which
extension onFuture<Subject>
. matches
renamed tomatchesPattern
and now accepts aPattern
argument, instead of limiting toRegExp
.
- Added an example.
- Include a stack trace in the failure description for unexpected errors from Futures or Streams.
0.1.0 #
- Initial release.