blob: 71b20aca91f91ea889fdadfda9b47d3abbb752f4 [file] [view] [edit]
(py_test) Added an opt-in safeguard against `py_test` targets that silently
pass without running any tests. Set
{obj}`--@rules_python//python/config_settings:validate_test_main=enabled` to
fail the build when a test's main module only contains inert top-level
statements (definitions, imports, assignments) and never invokes a test
runner ([#3824](https://github.com/bazel-contrib/rules_python/issues/3824)).