13 Nov
2024
13 Nov
'24
11:58 a.m.
pytest exit code 5 is "No tests were collected".
Yep.
Did you add a test file? If so, are the tests in a form that pytest will discover them?
The invocation by tox will select the files. The problem is this:
driver: exit 5 (17.43 seconds) /Users/declan/darchirp> pytest --disable-warnings --html=driver_report.html -v tests/test_drivers.py -n auto -k Yaesu_Elecraft_KX3
He asked to only test the "Yaesu_Elecraft_KX3" which of course makes no sense (i.e. doesn't match the keyword on any test).
FYI, you can use the "fast-driver" tox target, which will attempt to only run tests on drivers changed since origin/master, but if you have anything outside of drivers/ changed it will revert back to "everything".
--Dan