web/test/test_windmill.py
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Fri, 15 Apr 2011 16:05:20 +0200
changeset 7236 b91205ada414
parent 7059 1d65b235549f
permissions -rw-r--r--
added test case to monitor speed improvements in the repository code. To use it, add a test in a patch, then hack CW to speed it up in another patch, updating the test if needed. By running the test with and without the second patch applied you can easily see the speed improvements

# Run all scenarii found in windmill directory
from os.path import join, dirname
from cubicweb.devtools.cwwindmill import (CubicWebWindmillUseCase,
                                          unittest_main)

class CubicWebWindmillUseCase(CubicWebWindmillUseCase):
    #test_dir = join(dirname(__file__), "windmill/test_edit_relation.py")
    pass


if __name__ == '__main__':
    unittest_main()