-
Notifications
You must be signed in to change notification settings - Fork 220
Description
In https://github.com/dart-lang/native, we use package:test
. But these tests also roll into the Dart SDK and run there with the Dart SDKs test.py
.
We can only run a subset of tests on the Dart SDK CI, due to having no cross compilation tools available. We run the full set of tests on the GitHub CI. The compilers on the GitHub CI and Dart SDK CI are not the same, so we want to run in both places for coverage.
Now, we've been managing the set of tests that runs on the Dart CI via status files in the Dart CI, but this requires updating those files on rolls.
Instead, we'd like to use tags. So we'd tag all our cross compilation tests with cross-compilation
for example.
However, since test.py
is not package:test
s bin/
runner, there's no way to pass --exclude-tags
.
An idea on how to make this work:
- Put the exclude tags in environment variables. And one of the the following:
- make
test
/group
read those env variables if not run viapackage:test
- enable
setupAll
to settags
, so that all thetest
andgroup
calls after it in the file respect those tags instead - add a new
configureTestRunner(...)
method that can set all the variables that would be usually set via thepackage:test
command-line arguments.
- make
Doing something in this direction would also enable configuring what to run in a test file when running it from source in the debugger.
@natebosch @jakemac53 Any thoughts or ideas? Is there already a way to do this?
cc @goderbauer