Mercurial > lcfOS
view test/grind.py @ 310:e95e5572cd6d
Added utils doc page
author | Windel Bouwman |
---|---|
date | Fri, 13 Dec 2013 14:10:10 +0100 |
parents | e609d5296ee9 |
children | ff665880a6b0 |
line wrap: on
line source
#!/usr/bin/python import cProfile import unittest import pstats import sys import os sys.path.insert(0, os.path.join('..','python')) if __name__ == '__main__': suite = unittest.TestLoader().discover('.') def runtests(): unittest.TextTestRunner().run(suite) #s = cProfile.run('runtests()',sort='cumtime') s = cProfile.run('runtests()',sort='tottime')