Testing
Hydra uses a test automation tool called nox to manage tests, linting, code coverage, etc.
nox will run all the configured sessions. You can see the full list of nox sessions with nox -l and run specific sessions
with nox -s NAME (you may need to quote the session name in some cases)
With pytestβ
Run pytest at the repository root to run all the Hydra core tests.
To run the tests of individual plugins, use pytest plugins/NAME.
NOTE
Some plugins support fewer versions of Python than the Hydra core.
With noxβ
See nox -l. a few examples:
nox -s test_corewill test Hydra core on all supported Python versionsnox -s "test_core-3.6(pip install)": Test on Python 3.6 withpip installas installation methodnox -s "test_plugins-3.8(pip install -e)": Test plugins on Python 3.8 withpip install -eas installation method