PackageTrack
Sign in Get early access

checks

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

0.3.1 100K downloads/mo #1142 most downloaded on pub.dev dart-lang/test

What this package is like to depend on

Last release 1 years ago

01 Jul 2025

Release timing varies

gaps range from 1 weeks to 1.4 years

Nearly every release is documented

notes for 6 of 6 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

6 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

6 releases · Jan 2023 to Jul 2025
2024 2025 2026
Release Pre-release

Releases

latest 6
  1. 0.3.1 01 Jul 2025
    Release notes
    • Directly compare keys across actual and expected Map instances when checking deep collection equality and all the keys can be directly compared for equality. This maintains the path into a nested collection for typical cases of checking for equality against a purely value collection.
    • Always wrap Condition descriptions in angle brackets.
    • Add containsMatchingInOrder and containsEqualInOrder to replace the combined functionality in containsInOrder.
    • Replace pairwiseComparesTo with pairwiseMatches.
    • Fix a bug where printing the result of a failed deep quality check would fail with a TypeError when comparing large Map instances.
    • Increase SDK constraint to ^3.5.0.
    • Clarify this package is experimental.
    Open source →
  2. 0.3.0 29 Jan 2024
    Release notes
    • 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.
    Open source →
  3. 0.2.2 02 May 2023
    Release notes
    • 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.
    Open source →
  4. 0.2.1 08 Feb 2023
    Release notes
    • Add a link to file issues with feedback in the README.
    Open source →
  5. 0.2.0 07 Feb 2023
    Release notes
    • 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.
    Open source →
  6. 0.1.0 27 Jan 2023
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive