No subject


Sat Feb 27 01:15:03 PST 2010


 - 'python setup.py test' for running developer-level tests

 - 'python -m somepackage.tests.run' 

better than 'python -m unittest somepackage.tests'.

> I actually quite like the idea of having a run module in your tests so  
> that "python -m somepackage.test.run" always works. This allows a single  
> defined entry point *whichever* test framework you are using. The other  
> mechanisms discussed depend on the user *knowing* which framework was  
> used in order to be able to invoke the tests (although if you have  
> external dependencies they will still need to be installed of course).

Yes, good point!  Although of course other frameworks are a bit more malleable
than the stdlib.

thanks,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the testing-in-python mailing list