Skip to content
Advertisement

How to run only one test in tox?

I’m trying to write a new test for a project and I’d like to test only that one test in tox. I’m already completely sure that other tests are fine, I don’t need them being run every time. The only suggestion I’ve found doesn’t work with

JavaScript

Advertisement

Answer

As written by jason meridth:

JavaScript

But the fine grain is mentioned by beluga.me in the comments: If you have a tox.ini file you might need to add the {posargs} to pytest in tox.ini:

JavaScript

Run one test with unittest

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement