| commit | f95c0f5c10fa9af35014117cb00ec17d2a117265 | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Tue Jan 06 10:21:18 2026 -0800 |
| committer | GitHub <noreply@github.com> | Tue Jan 06 10:21:18 2026 -0800 |
| tree | 718e0158fd3d03c1078837715f5b98c5945064f3 | |
| parent | c970e0035248d149e02c42143cba7b9055e40144 [diff] |
Allow empty test source when parsing metadata (#2583) Some use cases with precompiled tests pass an empty test source file and skip any of the behavior of configuration metadata annotations. This isn't the golden path design for the runner, but we can avoid breaking it easily. In this scenario the specific problem of a missing `main` will have already been handled by other infrastructure, so whether the error is clear is out of our control. This change does restore the less direct error about missing main in the case where a typical test runner user tries to run a completely empty test suite, but this is unlikely in practice.
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.
| Package | Description | Issues | Version |
|---|---|---|---|
| checks | A framework for checking values against expectations and building custom expectations. | ||
| fake_async | Fake asynchronous events such as timers and microtasks for deterministic testing. | ||
| matcher | Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. | ||
| test | A full featured library for writing and running Dart tests across platforms. | ||
| test_api | The user facing API for structuring Dart tests and checking expectations. | ||
| test_core | A basic library for writing tests and running them on the VM. | ||
| test_descriptor | An API for defining and verifying files and directory structures. | ||
| test_process | Test processes: starting; validating stdout and stderr; checking exit code. |