Nox testing
To run full test suite:
nox
To run only sub section of tests:
nox -rs tests
To run only specific test from subsesction:
nox -rs tests -- tests/test_generate_switch_config_aruba_csm_1_0.py
-r re-uses a previous testing virtual environment to save time. should not be used for testing when you are adding or changing libraries. -s specifies an overall session as defined in nox.py. for canu currently these can be tests, lint, docs
To run the full set of tests, linting, coverage map, and docs building run:
python3 -m pip install .[ci]
nox
To just run tests:
nox -s tests
To just run linting:
nox -s lint
To run a specific test file:
nox -s tests -- tests/test_report_switch_firmware.py
To reuse a session without reinstalling dependencies use the -rs
flag instead of -s
.