I guess lots of people have asked that before so s...
# general
n
I guess lots of people have asked that before so sorry if that is the case 😞 Is there any way to exclude a test when running
pants test ::
?
✅ 1
h
prefix it with
-
on the cmd line. So
Copy code
pants test :: -path/to/excluded_test.py
✅ 1
b
If you want to skip it permanently (e.g. that file is broken or something), there's also https://www.pantsbuild.org/docs/reference-python_test#codeskip_testscode e.g.
python_test(..., skip_tests=True)
or
python_tests(..., overrides={"test_foo.py": dict(skip_tests=True)})
💛 1