Integrating coverage.py output in testing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Integrating coverage.py output in testing

WingIDE - User mailing list
Hi,

I'm looking into the possibility of integrating coverage.py with running tests. More specifically, displaying coverage output as highlights in the source editor (similar to coverage.py's html-report). Is there a way to achieve some level of this by using existing testing configuration settings?

Jon

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Integrating coverage.py output in testing

WingIDE - User mailing list
Jon Everett via wingide-users wrote:
> I'm looking into the possibility of integrating coverage.py with
> running tests. More specifically, displaying coverage output as
> highlights in the source editor (similar to coverage.py's
> html-report). Is there a way to achieve some level of this by using
> existing testing configuration settings?

Not really, or at least not easily.  It might be possible to modify the
test runner for the unit test system you are using.  They are in
src/testing/runners in your Wing installation and you can step through
them when debugging tests, as a way to understand what they do.  Then
output from coverage.py could be written somewhere and you could set up
a way to view it.  The easy way to view it would be as an html report in
a browser, which you could launch from a script in Wing.  It would take
modifying Wing (or at least "reaching through" the scripting API) to
show the results on the editor since at this point the scripting API
does not cover placing annotations on the editor.

Don't hesitate to ask questions if this doesn't put you off and you try
to set up something.

--

Stephan Deibel
Wingware | Python IDE

The Intelligent Development Environment for Python Programmers

wingware.com


_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Loading...