Created
October 7, 2023 14:19
-
-
Save jasonjohnson/0b6edf436a0bcc67677273b3903a5a39 to your computer and use it in GitHub Desktop.
Discover and run all tests
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 | |
if __name__ == "__main__": | |
suite = unittest.TestLoader().discover( | |
start_dir=".", | |
pattern="*_test.py", | |
) | |
unittest.TextTestRunner( | |
verbosity=2 | |
).run(suite) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment