Tip
To learn more about software testing in PlasmaPy, please check out the testing guide.
PlasmaPy's tests are written using the pytest framework, with Nox as the test runner.
Locating tests
The tests directory contains PlasmaPy's tests. The directory
structure and organization of tests largely mirrors that of
src/plasmapy, which contains PlasmaPy's source code. For example,
the source code of plasmapy.formulary.speeds is located at
src/plasmapy/formulary/speeds.py, while its tests are located at
tests/formulary/test_speeds.py
Running tests
To run tests locally, first install Nox and its dependencies with:
python -m pip install nox uv
To run all but the slowest tests, enter the top-level directory of your clone of PlasmaPy and run:
For more information, please see the section in the testing guide on running tests.