Skip to content

Instantly share code, notes, and snippets.

@calvinlam0124
Created April 16, 2018 08:48
Show Gist options
  • Select an option

  • Save calvinlam0124/f0f7a466b5b2648e75264f597206d9cd to your computer and use it in GitHub Desktop.

Select an option

Save calvinlam0124/f0f7a466b5b2648e75264f597206d9cd to your computer and use it in GitHub Desktop.
#!/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