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.
2 files changed
tree: f8c1a0f870a31cc42427a83cf2a563cdd2bb9eaf
  1. pkgs/
  2. tool/
  3. .gitignore
  4. .travis.yml
  5. analysis_options.yaml
  6. CONTRIBUTING.md
  7. mono_repo.yaml
  8. README.md
README.md

Test Mono Repository

This repository contains packages for writing and running Dart tests.

test

A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.

test_api

A minimal package for writing tests. This package is used by package:test and package:test_core.

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.