[TIP] overriding default args to commands in tox

Sid itissid at gmail.com
Mon Dec 8 15:50:03 PST 2014


I have about 5 independent sections in tox where I need my py.test command
to run by default in parallel using xdist. I currently hardcode "-n X"  in
all the sections.

But sometimes I want to not use xdist like when I debug or run them
serially. Can disable xdist via tox by overriding the "-n X" option to be
empty.

P.S: I am aware of using environment variables as a way to do this. But I
think it maybe easier for a user to specify this via tox and not depend on
env.

-Regards
Sid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20141208/8969169d/attachment.htm>


More information about the testing-in-python mailing list