Skip to content

Commit

Permalink
tox.ini: use {posargs} in pytest command (#45)
Browse files Browse the repository at this point in the history
This allows to pass in arguments for pytest, e.g. `-k` or the test
path(s).

This also removes the pytest_factoryboy dir, since it does not contain
any tests.
  • Loading branch information
blueyed authored and olegpidsadnyi committed Jan 29, 2018
1 parent 41e8b68 commit c5362f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist = py{27,34,35}-pytest{2,3}


[testenv]
commands = py.test --junitxml={envlogdir}/junit-{envname}.xml pytest_factoryboy tests
commands = py.test --junitxml={envlogdir}/junit-{envname}.xml {posargs:tests}
deps = -r{toxinidir}/requirements-testing.txt
pytest2: pytest<3.0
pytest3: pytest>3.0
Expand Down

0 comments on commit c5362f0

Please sign in to comment.