[Pydev-users] [Users] RE: How to run only specific test methods?
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2011-11-13 18:08:29
|
The following forum message was posted by piotr_dobrogost at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4811846: Could http://stackoverflow.com/questions/3121107/is-test-suite-deprecated-in-pyu nit/7368528#7368528 be the answer? [quote]In addition to Mark's answer, one more reason to build your own suite() is if you are dynamically building tests. Also, it took me a while to figure out how to get PyDev to pick up the suite and run it in the graphical test runner. The trick is to put in a method like so: [code]def load_tests(loader, tests, pattern): return suite() [/code] Such a method gets picked up the graphical test runner. [/quote] |