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.
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
To run tests locally, first install Nox and its dependencies with:
python -m pip install nox uvTo run all but the slowest tests, enter the top-level directory of your clone of PlasmaPy and run:
noxFor more information, please see the section in the testing guide on running tests.