Hey all, Is there anyway to disable the parallel e...
# general
c
Hey all, Is there anyway to disable the parallel execution of tests per file in pants? We have some long running setup fixtures that we need for most tests but creating them for every file separately increased the overall test runtime drastically. Previously we have just used the
pytest-xdist
plugin with 8 workers, each worker then ran these fixtures once and the tests were evenly distributed across the workers. I am also open for other suggestions on how to potentially solve this issue.
r
c
I will have a look at that thank you!
h
I think that's a little different? That thread is asking about reducing parallelism to conserve RAM, and it sounds like you're asking about batching more than one test file per process, to save on setup overhead?
c
Thank you Benjy, the
batch_compatibility_tag
options is exactly what I was looking for 🙂