Reputation: 8266
I have a certain number of end-to-end integration tests that I'd like to run before other deeper end-to-end tests run. So long as I am not using the --keep_going
flag the first test failure should quit a bazel test //...
session. I'd like the more shallow end-to-end tests to run before the deeper tests, is there a way to govern test execution order from bazel?
I suppose I could do stuff in the shell like marking the tests as manual
and then piecewise invoking the relevant tests in the order I wish, but it would be great if there's some built in way to accomplish the above.
Upvotes: 6
Views: 1001
Reputation: 12000
There's no direct support for this in Bazel, AFAIK.
You could set user specified tags and then use the --test_tag_filter
flag to run tests in batches. F.e. you could have shallow
and deep
tags, and then first run the tests with the shallow
tag, then the tests without either tag and then the tests with the deep
tag.
Upvotes: 7