The following forum message was posted by somik at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4701071:
How does Pydev pick up testsuites? I am unable to get my testsuite to be recognized by the test runner. class MyTest(unittest2.TestCase): def test_something(self): self.assertEquals(10,10) class MyTestSuite(unittest2.TestSuite): def suite(self): return suite() def suite(): #code to make a suite of tests if __name__ == '__main__': unittest2.TextTestRunner(verbosity=2).run(suite()) ************************************************************* If I run this as a Python program in Pydev (Run As -> Python Run), the suite runs fine. If I try running this in the PyUnit GUI (Run As -> Python unit-test), it does not, as the suite() method is never called! How do I ensure that the suite() method gets picked up by PyUnit? I tried looking at the documentation but could not find anything. Thank you so much for helping. ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users