commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject Re: Code coverage
Date Tue, 19 Apr 2005 14:19:43 GMT
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:   jmitchell@apache.org-----
Original Message -----From: <agodinhost@globo.com>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 <mjslask@expertsystem.se> '>'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: commons-dev-unsubscribe@jakarta.apache.org '>'For additional
commands, e-mail: commons-dev-help@jakarta.apache.org '>'---------------------------------------------------------------------To
unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.orgFor additional commands, e-mail:
commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message