Last active
September 24, 2019 14:23
-
-
Save DavidPiper94/c9d4d37d50cabc6b388096e013973be6 to your computer and use it in GitHub Desktop.
Example code for article about unit tests - Testrunner
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 unittest | |
loader = unittest.TestLoader() | |
start_dir = '.' | |
suite = loader.discover(start_dir) | |
runner = unittest.TextTestRunner() | |
runner.run(suite) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to article: https://medium.com/@HeyDaveTheDev/writing-unit-tests-in-python-d61531d2c3f0