Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Unusual application for code coverage tool?

Thread Tools

Re: Unusual application for code coverage tool?

Anupam Sengupta
Posts: n/a
Jared MacDonald <(E-Mail Removed)> wrote:
>> I'm searching for a java code coverage tool. I plan to identify every
>> line that isn't executed, and then comment it out of the source code,
>> in order to produce a truly minimal size java applet. Assuming that no
>> tool can do this actual thing, I would need line by line coverage
>> output in a readable file so I can run the commenting as a post
>> process.

> I assume you came across Clover?
> I'm not sure if you're willing to write unit tests to determine the
> code coverage of the applet, but if you are, Clover is very good at
> producing line-by-line reports of coverage (in a typical report, each
> line provides a highlighted indication of whether it was executed or
> not, and if it was, how many times).

If you are willing to take the unit test approach, then the "NoUnit"
tool can also provide an indication on the coverage (well, coverage of
the tests actually).

This of course assumes that your test cases
exercise the application/applet extensively, and the branches/code being
left out can be reasonably excised from source without any negative
effects on actual operation.

- Anupam
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code coverage on a live application Java 2 01-10-2009 09:58 PM
Coverage checker: or pycover or ? Python 0 05-25-2008 01:20 PM
Code coverage & Functional coverage tutorials Raj VHDL 4 02-21-2008 12:32 PM "Statement coverage is the weakest measure of code coverage" Ben Finney Python 7 10-30-2007 01:43 PM
source code analysis/code coverage tool experience bill turner Java 2 07-19-2005 03:02 PM