Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run-tests.py #61

Closed
NicolaCourtier opened this issue Oct 18, 2023 · 2 comments · Fixed by #95
Closed

Add run-tests.py #61

NicolaCourtier opened this issue Oct 18, 2023 · 2 comments · Fixed by #95

Comments

@NicolaCourtier
Copy link
Member

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

@NicolaCourtier NicolaCourtier linked a pull request Oct 19, 2023 that will close this issue
@BradyPlanden
Copy link
Member

BradyPlanden commented Nov 9, 2023

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.

@NicolaCourtier
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants