Skip to content

Instantly share code, notes, and snippets.

@serian
Created February 2, 2011 18:07
Show Gist options
  • Save serian/808098 to your computer and use it in GitHub Desktop.
Save serian/808098 to your computer and use it in GitHub Desktop.
python unittest
suite = unittest.TestSuite()
suite_a= unittest.TestLoader().loadTestsFromTestCase(SomeClassATest)
suite_b = unittest.TestLoader().loadTestsFromTestCase(SomeClassBTest)
suite.addTest(suite_a)
suite.addTest(suite_b)
unittest.TextTestRunner().run(suite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment