小编Leo*_*z0r的帖子

Running a test with tox based on a keyword

I am using pytest with tox. I can run some of my tests with a keyword like this:

pytest -k <keyword> path/to/tests

Now it would be really convenient to be able to do this also with tox, as the environments there are clean and different python versions can be tested. However the nearest thing I have found is:

tox -- path/to/tests/test_very_specific_name.py:TestClass.test_func

This is not easy to type, so I rather just run tox without arguments and wait 2 minutes for …

pytest tox

2
推荐指数
1
解决办法
900
查看次数

标签 统计

pytest ×1

tox ×1