ripe-cpu-85141
10/28/2022, 7:49 PM[pytest].xdist_enabled = true
. I wonder if I should add pytest-xdist on [pytest].extra_requirements
(I guess yes given it is on the default value). And also I don't see much difference. The execution seems to set -n 1
on the pytest command line. But I have 2 cpus. Is it expected?sparse-lifeguard-95737
10/28/2022, 8:09 PM-n
is set by the engine, and depends on the number of other processes Pants is concurrently running - so if you have many tests running at the same time it makes sense they might all end up with -n 1
š¢sparse-lifeguard-95737
10/28/2022, 8:10 PMpytest
process - Iām excited to play around with combining that feature with xdist
to get one process with a big value for -n
ripe-cpu-85141
10/28/2022, 8:12 PMn 1
, right?sparse-lifeguard-95737
10/28/2022, 8:13 PMripe-cpu-85141
10/28/2022, 8:14 PM