471,356 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

testing with coverage.py problem

Hi there.

I've spent few hours and found nothing, so here's my question:
How can i run tests wrote by myself on a module, using coverage.py ?
Let's assume i have a module mymod.py which i want to test with tests from
file mytest.py (i.e. class inherited from unittest.TestCase). How to do
that with coverage.py? Where i should put the code that runs the tests?

--
Regards
Piotr Hrebieniuk
Jul 16 '07 #1
1 1203
On Behalf Of Piotr Hrebieniuk
I've spent few hours and found nothing, so here's my question:
How can i run tests wrote by myself on a module, using coverage.py ?
Let's assume i have a module mymod.py which i want to test
with tests from file mytest.py (i.e. class inherited from
unittest.TestCase). How to do that with coverage.py? Where i
should put the code that runs the tests?
The easiest way is probably by using nose
http://somethingaboutorange.com/mrl/projects/nose/

In particular, check out the "--with-coverage" flag.

Regards,
Ryan Ginstrom

Jul 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tom Verbeure | last post: by
2 posts views Thread by carl.manaster | last post: by
4 posts views Thread by O. Zimmermann | last post: by
4 posts views Thread by Bob Hanson | last post: by
72 posts views Thread by Jacob | last post: by
6 posts views Thread by Dick | last post: by
58 posts views Thread by nw | last post: by
2 posts views Thread by Orin | last post: by
24 posts views Thread by David | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.