#3285 closed enhancement (fixed)

Run integration tests from one file

Reported by: sajith Owned by: sajith
Priority: minor Milestone: undecided
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

It would be useful to be able to run integration tests using tox like:

$ tox -e integration -- integration/test_web.py

such that tox will run just the tests in integration/test_web.py. This will be a one-line change in tox.ini, from:

py.test --coverage -v integration/

to

py.test --coverage -v {posargs:integration/}

Change History (4)

comment:1 Changed at 2020-03-06T19:50:46Z by sajith

  • Owner set to sajith
  • Priority changed from normal to minor
  • Type changed from defect to enhancement

comment:2 Changed at 2020-03-06T20:23:56Z by sajith

  • Summary changed from Run tests integration tests from one file to Run integration tests from one file

comment:3 Changed at 2020-03-10T16:30:25Z by Sajith Sasidharan <sajith@…>

  • Resolution set to fixed
  • Status changed from new to closed

In bcfd3a5e/trunk:

Pass posargs to py.test when running integration tests

Running "tox -e integration" takes a while. It would be helpful to
run tests from just one file. With this change, we can do that, like
so:

$ tox -e integration -- integration/test_web.py

Or even just one test, like so:

$ tox -e integration -- integration/test_web.py::test_index

With this investigating failing integration tests will be a little
easier, hopefully.

Fixes: ticket:3285

comment:4 Changed at 2020-03-10T16:30:25Z by GitHub <noreply@…>

In df2144c/trunk:

Merge pull request #697 from sajith/3285.integration-test-posargs

Pass arguments to py.test when running "tox -e integration"

Fixes: ticket:3285

Note: See TracTickets for help on using tickets.