view python/grind.py @ 282:c137f1fe3e65

Add codeship hook
author Windel Bouwman
date Fri, 15 Nov 2013 09:32:37 +0100
parents 444b9df2ed99
children
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')