Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Want to know what your unit test are really doing? Try this...


FYI - I am actively working on providing and publishing these statistics WTP-wide using these TPTP features.

Thanks,

John Lanuti
IBM Web Tools Platform Technical Lead, IBM Rational
IBM Software Lab - Research Triangle Park, NC
jlanuti@xxxxxxxxxx
t/l 441-7861



Lawrence Mandel <lmandel@xxxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx

12/05/2006 08:47 AM

Please respond to
"General discussion of project-wide or architectural issues."        <wtp-dev@xxxxxxxxxxx>

To
"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
cc
Subject
Re: [wtp-dev] Want to know what your unit test are really doing?        Try        this...






Cool. Thanks for forwarding this on Valentin. Does this tool have the potential to be integrated with the build and displayed in a plug-in centric report?


Lawrence Mandel

Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@xxxxxxxxxx


Valentin Baciu/Toronto/IBM@IBMCA
Sent by: wtp-dev-bounces@xxxxxxxxxxx

12/04/2006 06:03 PM

Please respond to
"General discussion of project-wide or architectural issues."        <wtp-dev@xxxxxxxxxxx>

To
wtp-dev@xxxxxxxxxxx
cc
Subject
[wtp-dev] Want to know what your unit test are really doing? Try        this...








For a little while I was looking for a good line level code coverage tool. It had to integrate seamlessly with the JDT and JUnit as well as do its work without an instrumentation pass. A few months back when I last looked TPTP www.eclipse.org/tptp did provide a method level code coverage feature. While better than nothing, it was not really precise enough for methods with more than one code path. So I decided to wait.


Recently I had time to check again and voila: TPTP provides a decent line level code coverage feature as a technical preview. I found that the feature is very lightweight and easy to install. The level of integration with the JDT is pretty good.


To get the LLC feature go here: http://www.eclipse.org/downloads/download.php?file=/tptp/4.2.1/TPTP-4.2.1-200609071820D/org.eclipse.tptp.platform.coverage.core-TPTP-4.2.1.zip. In a strange but good way it seems it does not require the entire TPTP platform. Also, spend a few minutes and watch this: http://www.eclipse.org/tptp/home/documents/tutorials/viewlets/v4.2/LLC/LineCoverage_viewlet_swf.html


Here's a sample report produced on the component I'm primarily working on - the WSDL EMF model. As my component lead said when he saw it, it seems we've got some holes here and there... :-)




Here's how the decorated package explorer looks like (you can turn off these decorations):




And here's a sample annotated Java editor (the various annotations can be turned off)




I hope you find this as helpful as I did.


Regards,

Valentin
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev


Back to the top