Skip to content

Instantly share code, notes, and snippets.

@jasonjohnson
Created October 7, 2023 14:19
Show Gist options
  • Save jasonjohnson/0b6edf436a0bcc67677273b3903a5a39 to your computer and use it in GitHub Desktop.
Save jasonjohnson/0b6edf436a0bcc67677273b3903a5a39 to your computer and use it in GitHub Desktop.
Discover and run all tests
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