Created
April 16, 2018 08:48
-
-
Save calvinlam0124/f0f7a466b5b2648e75264f597206d9cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bin/env python3 | |
| import unittest | |
| import sys | |
| from TestAPI import TestAPI | |
| # run TestAPI | |
| suite = unittest.TestLoader().loadTestsFromTestCase(TestAPI) | |
| re = unittest.TextTestRunner(verbosity=2).run(suite) | |
| # set exit code | |
| if len(re.errors)>0: | |
| sys.exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment