A pytest runner with bazel support
Maintained. Last release 11 days ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install pytest-bazelpytest-bazel

Documentation Changelog Contributing
Bazel test encyclopedia support
How pytest_bazel follows the test encyclopedia when running under
bazel test.
| Bazel | pytest_bazel | Docs | Reference |
|---|---|---|---|
TESTBRIDGE_TEST_ONLY (--test_filter) | Selects tests by their exact names, e.g. TestClass.test_fn, a path or a pytest node id, or several of them separated by commas. A filter with spaces is a -k expression. | Example | Initial conditions |
TESTBRIDGE_TEST_RUNNER_FAIL_FAST (--test_runner_fail_fast) | Passes --exitfirst. | Example | Flag |
TEST_INFRASTRUCTURE_FAILURE_FILE | Written when pytest itself fails, i.e. on a usage or internal error, so that a broken setup can be told apart from failing tests. | Example | Initial conditions |
TEST_LOGSPLITTER_OUTPUT_FILE | Not supported. | Not supported | Initial conditions |