I am a newbie and that says it all about posting a basic doubt. I still hope someone helps me out .
I am unit testing some modules. My test module is in diff file than the modules
to be tested. My code is something like this :
<PRE>
class xyz(unittest.Te stCase):
def testAbc():
.....
def testPqr():
.....
def testKlm():
.....
def makeTestSuite() :
suite = unittest.TestSu ite()
suite.addTest(x yz("testAbc"))
suite.addTest(x yz("testPqr"))
return suite
if __name__ == "__main__":
unittest.main()
</PRE>
But, though i am adding only tow test cases in the test suite, all the 3 test cases are running. I cannot figure out the reson. Could someone please help me?
Regards,
rdps
I am unit testing some modules. My test module is in diff file than the modules
to be tested. My code is something like this :
<PRE>
class xyz(unittest.Te stCase):
def testAbc():
.....
def testPqr():
.....
def testKlm():
.....
def makeTestSuite() :
suite = unittest.TestSu ite()
suite.addTest(x yz("testAbc"))
suite.addTest(x yz("testPqr"))
return suite
if __name__ == "__main__":
unittest.main()
</PRE>
But, though i am adding only tow test cases in the test suite, all the 3 test cases are running. I cannot figure out the reson. Could someone please help me?
Regards,
rdps
Comment