https://pantsbuild.org/ logo
f

few-arm-93065

03/07/2023, 11:00 PM
Hello, apologies if I missed this in the docs, but is there a way to limit pants to specific python resolve when testing? We are using multiple resolves for common code with
parametrize
, but pants ends up running tests for every resolve. We really only need to run them once.
w

witty-crayon-22786

03/07/2023, 11:02 PM
not currently, but https://github.com/pantsbuild/pants/issues/17856 covers adding
--filter-*
options to select particular resolves.
f

few-arm-93065

03/07/2023, 11:03 PM
thanks! looking forward to that
w

witty-crayon-22786

03/07/2023, 11:36 PM
one quick question: why
parametrize
the tests if you only (ever?) want to run on one? or are there some cases where you want to be able to choose which one you’ll run with via the CLI?
f

few-arm-93065

03/08/2023, 2:00 AM
I was all ready to say that the tests weren’t parameterized, the python_sources were, but on second look, the tests were absolutely parameterized, and specifying just one worked exactly as it should. Thanks for the question! hah.
4 Views