checks 0.3.0 copy "checks: ^0.3.0" to clipboard
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 the it() utility. Replace calls to (it()..someExpectation()) with ((it) => it.someExpectation()).
  • Add class modifiers to restrict extension of implementation classes.

0.2.2 #

  • Return the first failure from softCheck and softCheckAsync 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 implement Comparable.

0.2.1 #

  • Add a link to file issues with feedback in the README.

0.2.0 #

  • Breaking Changes
    • checkThat renamed to check.
    • nest and nestAsync take Iterable<String> Function() arguments for label instead of String.
    • Async expectation extensions completes, throws, emits, and emitsError no longer return a Future<Subject>. Instead they take an optional Condition argument which can check expectations that would have been checked on the returned subject.
    • nestAsync no longer returns a Subject, callers must pass the followup Condition to the nullable argument.
    • Remove the which extension on Future<Subject>.
    • matches renamed to matchesPattern and now accepts a Pattern argument, instead of limiting to RegExp.
  • Added an example.
  • Include a stack trace in the failure description for unexpected errors from Futures or Streams.

0.1.0 #

  • Initial release.
86
likes
140
pub points
78%
popularity

Publisher

verified publisherlabs.dart.dev

A framework for checking values against expectations and building custom expectations.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

async, meta, test_api

More

Packages that depend on checks