rapid-exabyte-76685
04/01/2022, 1:49 AMpython_tests in the directory that has the tests in question... ๐งต
python_tests(
name="test",
source=[
"test_*.py",
"!test_that_is_deadlocking1.py",
"!test_that_is_deadlocking2.py"
]
)
python_tests(
name="deadlocking_tests",
source=[
"test_that_is_deadlocking1.py",
"test_that_is_deadlocking2.py"
]
)rapid-exabyte-76685
04/01/2022, 1:50 AM./pants test :: then both the non-deadlocking and deadlocking tests are run.rapid-exabyte-76685
04/01/2022, 1:51 AM./pants test ::tests or something like that to only run all targets in the whole tree named tests but that doesn't seem to work.rapid-exabyte-76685
04/01/2022, 1:52 AM./pants test directory/where/the/build/file/is:tests and ./pants test directory/where/the/build/file/is:deadlocking_tests do include the correct testshundreds-father-404
04/01/2022, 1:53 AMpath/to/dir:: rather than ::path/to/dirrapid-exabyte-76685
04/01/2022, 1:57 AM./pants test test:: I'm still seeing
Run Pytest for test/something/something/test_that_is_deadlocking1.py:deadlocking_testshundreds-father-404
04/01/2022, 2:01 AMtest:: means all matching targets recursively under the dir test. If you want to run all those targets except for some, you could use tags https://www.pantsbuild.org/docs/advanced-target-selection#tags-annotating-targets
(i also have a proposal to add ignore specs like test:: !test/subdir::)rapid-exabyte-76685
04/01/2022, 2:10 AMrapid-exabyte-76685
04/01/2022, 2:11 AMrapid-exabyte-76685
04/01/2022, 2:11 AM--spec-files instead I thinkwitty-crayon-22786
04/01/2022, 3:23 AMoverrides, afaict.rapid-exabyte-76685
04/01/2022, 3:36 AM--spec-file