Depending on the coverage tool, your source is either weaved just before compilation, or some runtime byte code manipulation happens such that every executable line of your projects class files are scored (hits, efficiency, etc) into some form of results, for which reports can be generated against.

Here's an example:
http://svn.apache.org/builds/struts/maven/trunk/docs/multiproject/struts-taglib/jcoverage/index.htmlYou can drill into any linked package and class, and see line for line whatis being hit, and what it 
not.....good stuff!!If your project is mavenized, adding 1 line in the report section gets youthis full report (for your project) for free, no other configurationneeded....it just doesn't get any better 
than that!--James MitchellSoftware Engineer / Open Source EvangelistConsulting / Mentoring / FreelanceEdgeTech, Inc.678.910.8017AIM:   jmitchtxYahoo: jmitchtxMSN:   [EMAIL PROTECTED] Original Message 
-----From: <[EMAIL PROTECTED]>To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>;<commons-dev@jakarta.apache.org>Sent: Tuesday, April 19, 2005 9:22 
AMSubject: RE: Code coveragePlease, sorry by my ignorance but, what is "unit test code coverage"?? Thisis different than the traditional unit test?Woody '>'-- Mensagem Original -- 
'>'Reply-To: "Jakarta Commons Developers List"<commons-dev@jakarta.apache.org> '>'Date: Tue, 19 Apr 2005 06:52:28 +0200 '>'To: commons-dev@jakarta.apache.org '>'From: Mattias J 
<[EMAIL PROTECTED]> '>'Subject: Code coverage '>' '>' '>'Is there an Apache standard for unit test code coverage? '>'It seems some projects use Clover and others jcoverage. Personally 
Ihave '>' '>'experience with Emma (http://emma.sourceforge.net/). '>'If I want to add code coverage to a Commons project, is either of these '>'preferrable? '>' '>'   Mattias Jiderhamn 
'>' '>' '>'--------------------------------------------------------------------- '>'To unsubscribe, e-mail: [EMAIL PROTECTED] '>'For additional commands, e-mail: [EMAIL PROTECTED] 
'>'---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to