Skip to content

Instantly share code, notes, and snippets.

@gahcep
Created February 10, 2013 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gahcep/4749765 to your computer and use it in GitHub Desktop.
Save gahcep/4749765 to your computer and use it in GitHub Desktop.
Article 'QA in Python - working with unittest'
import unittest
import pyexample_6_module_a
import pyexample_6_module_b
loader = unittest.TestLoader()
suite = loader.loadTestsFromModule(pyexample_6_module_a)
suite.addTests(loader.loadTestsFromModule(pyexample_6_module_b))
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(suite)
# CLI run options
# - pyexample_6.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment