view test/grind.py @ 299:674789d9ff37

Added a doc
author Windel Bouwman
date Sun, 01 Dec 2013 18:37:23 +0100
parents 1c7c1e619be8
children be7f60545368
line wrap: on
line source


import cProfile
import unittest
import pstats

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')