Created
March 11, 2013 15:06
-
-
Save zygisx/5134872 to your computer and use it in GitHub Desktop.
Run Python unnitests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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