Created
March 13, 2017 19:58
-
-
Save absent1706/263cd1b804ee839485d67df9e74fc84f to your computer and use it in GitHub Desktop.
run all python tests (unittest discover) programmatically
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
import os | |
import unittest | |
loader = unittest.TestLoader() | |
tests = loader.discover(os.path.join(os.path.dirname(__file__), | |
'sqlalchemy_mixins')) | |
testRunner = unittest.runner.TextTestRunner() | |
testRunner.run(tests) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment