Skip to content

Instantly share code, notes, and snippets.

@zygisx
Created March 11, 2013 15:06
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 zygisx/5134872 to your computer and use it in GitHub Desktop.
Save zygisx/5134872 to your computer and use it in GitHub Desktop.
Run Python unnitests
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import sys
import unittest
from tests.test_suite import TestSuite
def main():
suite = TestSuite()
runner = unittest.TextTestRunner()
result = runner.run(suite.suite())
exit_code = 0 if result.wasSuccessful() else -1
sys.exit(exit_code)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment