FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Plumb in positional args from the tox task to pytest

Merged James Barr requested to merge enable-positional-args-tox into master

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading