There are several decorators in the python unittest module:
There is a simple old @skip :
from unittest import skip @skip("Don't want to test") def test_something(): ...
If you cannot use @skip for some reason, @skipIf should work. Just fool it to always skip with the True argument:
@skipIf(True, "I don't want to run this test yet") def test_something(): ...
unittest docs
Missed Test Documents
If you just want to not run certain test files, the best way is probably to use fab or another tool and run certain tests.
Ray Toal Jul 08 '13 at 5:25 2013-07-08 05:25
source share