time_tests.py 218 Bytes
Newer Older
Ian Bowman's avatar
Ian Bowman committed
1 2 3 4 5 6 7 8
import cProfile
import unittest

if __name__ == '__main__':
   suite = unittest.TestLoader().discover('.')
   def runtests():
      unittest.TextTestRunner().run(suite)
   s = cProfile.run('runtests()',sort='cumtime')