Skip to content

Instantly share code, notes, and snippets.

@dsociative
Created July 21, 2012 08:55
Show Gist options
  • Save dsociative/3155154 to your computer and use it in GitHub Desktop.
Save dsociative/3155154 to your computer and use it in GitHub Desktop.
test runner
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
if __name__ == '__main__':
MASK = 'Test'
runner = unittest.TextTestRunner()
loader = unittest.TestLoader()
suites = loader.discover('./', pattern='zt_*.py')
for suite in suites:
runner.run(suite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment