[Fixed]-How to change Tox command with command-line parameters


Try adding {posargs} in the commands section of your tox.ini, like this:

commands =
    python manage.py test {posargs}

Then at the command line, something like:

tox -- --pattern='some_specific_test.py'

Everything after the -- will be substituted in as {posargs}.

Read the official documentation here.


This looks like it’s the latest doc for tox positional arguments: Substitions for positional arguments in commands

Leave a comment