Reputation: 14052
I am writing an integration-test (py_test
) for a Python library. Now it only makes sense to run this one if a set of other py_test
unit-tests have successfully completed.
I could not yet find a way of adding such a testing-dependency in Bazel.
Upvotes: 0
Views: 566
Reputation: 2370
Sorry it is not possible.
An action cannot declare a dependency on a test action.
Maybe you can work around by doing only one test or by adding tags (phase1, phase2):
bazel test --test_tag_filter -phase2 //... && bazel test --test_tag_filter phase2 //...
Upvotes: 2