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
Releases
latest 6-
0.3.101 Jul 2025Release notes
Open source →- Directly compare keys across actual and expected
Mapinstances 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
containsMatchingInOrderandcontainsEqualInOrderto replace the combined functionality incontainsInOrder. - Replace
pairwiseComparesTowithpairwiseMatches. - Fix a bug where printing the result of a failed deep quality check would
fail with a
TypeErrorwhen comparing largeMapinstances. - Increase SDK constraint to ^3.5.0.
- Clarify this package is experimental.
- Directly compare keys across actual and expected
-
0.3.029 Jan 2024Release notes
Open source →- Breaking Changes
- Remove the
Conditionclass and theit()utility. Replace calls to(it()..someExpectation())with((it) => it.someExpectation()).
- Remove the
- Add class modifiers to restrict extension of implementation classes.
- Breaking Changes
-
0.2.202 May 2023Release notes
Open source →- Return the first failure from
softCheckandsoftCheckAsyncas documented, instead of the last failure when there are multiple failures. - Add example
becauseusage and mention the "reason" name in the migration guide. - Add
ComparableCheckswith comparison expectations for subject types that implementComparable.
- Return the first failure from
-
0.2.108 Feb 2023 -
0.2.007 Feb 2023Release notes
Open source →- Breaking Changes
checkThatrenamed tocheck.nestandnestAsynctakeIterable<String> Function()arguments forlabelinstead ofString.- Async expectation extensions
completes,throws,emits, andemitsErrorno longer return aFuture<Subject>. Instead they take an optionalConditionargument which can check expectations that would have been checked on the returned subject. nestAsyncno longer returns aSubject, callers must pass the followupConditionto the nullable argument.- Remove the
whichextension onFuture<Subject>. matchesrenamed tomatchesPatternand now accepts aPatternargument, instead of limiting toRegExp.
- Added an example.
- Include a stack trace in the failure description for unexpected errors from Futures or Streams.
- Breaking Changes
-
0.1.027 Jan 2023