[TIP] How to get coverage.py and unittest2 working together?
ned at nedbatchelder.com
Thu Jul 22 12:49:51 PDT 2010
"coverage run xxx yyy zzz" should work if "python xxx yyy zzz" would
work. How do you invoke unit2 at the command line?
On 7/22/2010 3:09 PM, Jorge Vargas wrote:
> I'm new here and I hope this is the right list for my question, if
> it's not please let me know.
> I recently inherited a complex untested codebase and I'm starting by
> building a robust test framework around it.
> I'm used to have nose as my test suite/runner/etc. However I want to
> give unittest2 a try therefore my question is how we can get the two
> working together? I'm used to nose running my coverage reports for me.
> In theory something like
> coverage run unit2 discover
> should work but it doesn't as coverage expects a .py file to execute.
> In other words which should be the equivalent of nosetests --with-coverage
> Thanks in advance.
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python