Mercurial > lcfOS
annotate test/grind.py @ 299:674789d9ff37
Added a doc
author | Windel Bouwman |
---|---|
date | Sun, 01 Dec 2013 18:37:23 +0100 |
parents | 1c7c1e619be8 |
children | be7f60545368 |
rev | line source |
---|---|
245 | 1 |
2 import cProfile | |
3 import unittest | |
4 import pstats | |
5 | |
6 if __name__ == '__main__': | |
7 suite = unittest.TestLoader().discover('.') | |
8 def runtests(): | |
9 unittest.TextTestRunner().run(suite) | |
261 | 10 #s = cProfile.run('runtests()',sort='cumtime') |
11 s = cProfile.run('runtests()',sort='tottime') | |
245 | 12 |