Plumb in positional args from the tox task to pytest
Summary
Plumbs the positional args from the tox
task to pytest
. This enable developers to filtering tests by name and use other pytest CLI features.
For example, the following will filter tests to only run tests found in test_systemchecks.py
. Previously, these args were ignored and all tests would have been run.
poetry poe tox -- -k test_systemchecks.py
Spotted during work on https://gitlab.developers.cam.ac.uk/uis/devops/laboratory-allocator/lab-allocator/-/issues/407.
Edited by James Barr
Merge request reports
Activity
Please register or sign in to reply