Support for specifying test expectations, such as for unit tests.
The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.
For more information, see Unit Testing with Dart.
isInstanceOf. All language implementations now support converting the type parameter to a string directly.
Strings containing characters that must be represented as escape sequences.
isNotEmptymatchers and simply access the
isNotEmptyfields. This allows them to work with custom collections. See Issue 21792 and Issue 21562
printsmatcher test on dart2js.
printsmatcher that matches output a callback emits via
Refactored libraries and tests.
Fixed spelling mistake.
@deprecatedannotation on matchers due to Issue 19173
Matchers related to bad language use have been removed. These represent code structure that should rarely or never be validated in tests.
Added types to a number of method arguments.
The structure of the library and test code has been updated.
Add this to your package's pubspec.yaml file:
dependencies: matcher: "^0.11.4+5"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.12.1+4||Sep 20, 2017|
|0.12.1+3||Sep 5, 2017|
|0.12.1+2||Aug 30, 2017|
|0.12.1+1||May 27, 2017|
|0.12.1||May 5, 2017|
|0.12.0+2||Mar 24, 2016|
|0.12.0+1||May 21, 2015|
|0.12.0||Apr 30, 2015|
|0.11.4+6||Mar 24, 2016|
|0.11.4+5||Mar 24, 2016|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, server, web
No platform restriction found in primary library
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
|Dart SDK||>=1.0.0 <2.0.0|