21 Oct
2009
21 Oct
'09
6:36 a.m.
Hi,
What is lacking when you apply decorators like @opencv_skip and @slow? Note also that if you run nosetests from some folder you run only tests in subfolders. This is a natural separation already.
Ahh, now i understood how to select which tests to run with the nosetest script. I finally figured out -a and -A
I see one danger in using @slow: people stop executing anything but the fast tests. In such a case, it may simply be worth speeding up the slow test, if possible. I started to use @dec.slow now for every test that needs > 0.1 s on my system. They are still run by default but can be left out. It is wise to run the complete test suite (of all modules, not only those you worked on) before commiting ,).
Cheers, Holger