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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -