Jason Meridth's Blog Learn, Converse, Share

How to Run a Single Test With Tox

I have to run a single python test once in a while and keep forgetting how to do it with Tox.

Here it is:

tox -e py27 -- project_name_here/tests/folder_name1_here/folder_name2_here/test_file_name_here.py:TestClassName.test_method_name

Hope this helps someone else.

Happy bit twiddling.

Have feedback on this post? Let @jmeridth know on Twitter.