pybop-team/PyBOP

Add run-tests.py

Closed this issue · 2 comments

Feature description

A request to add the run-tests.py script for developers who are not using nox to run the tests.

Motivation

No response

Possible implementation

No response

Additional context

No response

Hi Nicola, here's a solution to the testing suite without the nox environment:

pytest --unit or python -m pytest --unit

For parallelised runs, pytest-xdist is available (and recommended):

pip instal pytest-xdist
pytest -n auto --unit

This will spawn an automated number of workers and run the testing suite. auto can be replace with an exact number of workers. I've added more information on running the testing suite has been added to the contributing.md on this branch.

Hi Brady, this is a good solution! I've linked the branch so we can close this issue when it's merged, thanks!