https://github.com/dart-lang/test
A library for writing unit tests in Dart.
https://github.com/dart-lang/test
Last synced: 7 months ago
JSON representation
A library for writing unit tests in Dart.
- Host: GitHub
- URL: https://github.com/dart-lang/test
- Owner: dart-lang
- Created: 2014-12-18T20:36:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2025-05-12T19:41:04.000Z (7 months ago)
- Last Synced: 2025-05-12T20:48:56.912Z (7 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/test
- Size: 9.57 MB
- Stars: 508
- Watchers: 57
- Forks: 218
- Open Issues: 266
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/dart-lang/test/actions/workflows/dart.yml)
[](https://deps.dev/project/github/dart-lang%2Ftest)
## What's here?
Welcome! [package:test](pkgs/test/) is the standard testing library for Dart and
Flutter. If you have questions about Dart testing, please see the docs for
[package:test](pkgs/test/). `package:test_api` and `package:test_core`
are implementation details and generally not user-facing.
[package:checks](pkgs/checks/) is a relatively new library for expressing test
expectations. It's a more modern version of `package:matcher` and features a
literate API.
## Packages
| Package | Description | Issues | Version |
| --- | --- | --- | --- |
| [checks](pkgs/checks/) | A framework for checking values against expectations and building custom expectations. | [][checks_issues] | [](https://pub.dev/packages/checks) |
| [fake_async](pkgs/fake_async/) | Fake asynchronous events such as timers and microtasks for deterministic testing. | [][fake_async_issues] | [](https://pub.dev/packages/fake_async) |
| [matcher](pkgs/matcher/) | Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. | [][matcher_issues] | [](https://pub.dev/packages/matcher) |
| [test](pkgs/test/) | A full featured library for writing and running Dart tests across platforms. | [][test_issues] | [](https://pub.dev/packages/test) |
| [test_api](pkgs/test_api/) | The user facing API for structuring Dart tests and checking expectations. | | [](https://pub.dev/packages/test_api) |
| [test_core](pkgs/test_core/) | A basic library for writing tests and running them on the VM. | | [](https://pub.dev/packages/test_core) |
| [test_descriptor](pkgs/test_descriptor/) | An API for defining and verifying files and directory structures. | [][test_descriptor_issues] | [](https://pub.dev/packages/test_descriptor) |
| [test_process](pkgs/test_process/) | Test processes: starting; validating stdout and stderr; checking exit code. | [][test_process_issues] | [](https://pub.dev/packages/test_process) |
[checks_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Achecks
[fake_async_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afake_async
[matcher_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amatcher
[test_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest
[test_descriptor_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_descriptor
[test_process_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_process