Over in numpy/numpy#30005 we're adding pytest-run-parallel CI for NumPy.
It occurs to me that our modifications to numpy's spin configuration might be useful for other projects using spin and pytest-run-parallel like SciPy.
Because most of the spin test options in NumPy are inherited from spin itself, we can't make the output of spin test --help quite as nice as we'd like to. So, if you're not interested in adding a new option in spin itself, we should at least update the docs for the -j option to make it clearer that -j uses pytest-xdist and needs pytest-xdist installed to work correctly.
Here's the docs for -j:
|
@click.option( |
|
"-j", |
|
"n_jobs", |
|
metavar="N_JOBS", |
|
default="1", |
|
help=( |
|
"Number of parallel jobs for testing. Can be set to `auto` to use all cores." |
|
), |
|
) |
ping @bwhitt7
Over in numpy/numpy#30005 we're adding
pytest-run-parallelCI for NumPy.It occurs to me that our modifications to numpy's
spinconfiguration might be useful for other projects usingspinandpytest-run-parallellike SciPy.Because most of the
spin testoptions in NumPy are inherited fromspinitself, we can't make the output ofspin test --helpquite as nice as we'd like to. So, if you're not interested in adding a new option inspinitself, we should at least update the docs for the-joption to make it clearer that-juses pytest-xdist and needs pytest-xdist installed to work correctly.Here's the docs for
-j:spin/spin/cmds/meson.py
Lines 442 to 450 in d2bc6b3
ping @bwhitt7