Python: is there a better way to skip the test module? -
i read how skip whole python unittest module @ run-time? , doesn't seems neat way
in java have @ignore on test class , entire test class ignored
is there better way skip entire test module or shall do
class testme(): @unittest.skip def test_a(self): pass @unittest.skip def test_b(self): pass ... by adding @unittest.skip on test on module
just use decorator on class, as per docs:
@unittest.skip("showing class skipping") class myskippedtestcase(unittest.testcase): def test_not_run(self): pass
Comments
Post a Comment