commit | a5a19ebc2dce8bb1ac517a88f91d953e750ef7c6 | [log] [tgz] |
---|---|---|
author | Jia Hao <jiahaog@users.noreply.github.com> | Sat Aug 08 00:45:26 2020 +0800 |
committer | GitHub <noreply@github.com> | Fri Aug 07 09:45:26 2020 -0700 |
tree | f8c1a0f870a31cc42427a83cf2a563cdd2bb9eaf | |
parent | f6a70db66015b4129d3c9558bf118db81fa459d2 [diff] |
Allow some async work in main with global declarer (#1314) When a test script is run directly without the test runner creating a wrapping script there is a global `Declarer` which gets instantiated during the first interaction with the test framework, such as a call to `group` or `test`. This would wait a microtask to start running the declared test cases, but would not work with a `main` that did other async work before declaring more tests. We can't support arbitrary async waits because we don't have a consistent signal that the `main` work is done, so use `pumpEventQueue` as a best effort.
This repository contains packages for writing and running Dart tests.
A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.
A minimal package for writing tests. This package is used by package:test
and package:test_core
.
A minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. This package is used by package:test
.