How to run tox command with posargs?

I have a tox.ini that uses the py.test runner.  When I configure a run configuration to run only a specific test with `-- path/to/my/test_file`  PyCharm never passes the extra arguments in {posargs} and all the tests run.  

Here is my tox.ini:

[tox]
envlist = py27
skipsdist = True

[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
py.test {posargs}
0
3 comments
Official comment

Hello Bron.

 

It works in 2017.1 EAP. Please look:

Can you please provide example of your run config? 

Make sure you are using latest tox

 

Avatar
Permanently deleted user

Thanks for the reply Ilya.  I am running 2016.3.2 and tox 2.6.0 - Is there any reason it would not work in the current stable release?

0

Please sign in to leave a comment.