Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 82424 invoked from network); 16 Dec 2006 20:28:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2006 20:28:50 -0000 Received: (qmail 34759 invoked by uid 500); 16 Dec 2006 20:28:51 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 34711 invoked by uid 500); 16 Dec 2006 20:28:51 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 34700 invoked by uid 99); 16 Dec 2006 20:28:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Dec 2006 12:28:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Dec 2006 12:28:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1050871413D for ; Sat, 16 Dec 2006 12:28:23 -0800 (PST) Message-ID: <7625836.1166300903064.JavaMail.jira@brutus> Date: Sat, 16 Dec 2006 12:28:23 -0800 (PST) From: "Grant Ingersoll (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-721) Code coverage reports In-Reply-To: <22074559.1164092462123.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/LUCENE-721?page=all ] Grant Ingersoll resolved LUCENE-721. ------------------------------------ Resolution: Fixed Committed the change. Linked to the reports from the Resources -> Developers page on the documentation. Current report was generated on 12/16/06. Once Lucene 708 is resolved, these reports will be updated nightly. Thanks Michael! > Code coverage reports > --------------------- > > Key: LUCENE-721 > URL: http://issues.apache.org/jira/browse/LUCENE-721 > Project: Lucene - Java > Issue Type: New Feature > Components: Other > Reporter: Michael Busch > Assigned To: Grant Ingersoll > Priority: Minor > Attachments: clover.patch, code_coverage.patch, emma_report.zip > > > Hi all, > We should be able to measure the code coverage of our unit testcases. I believe it would be very helpful for the committers, if they could verify before committing a patch if it does not reduce the coverage. > Furthermore people could take a look in the code coverage reports to figure out where work needs to be done, i. e. where additional testcases are neccessary. It would be nice if we could add a page to the Lucene website showing the report, generated by the nightly build. Maybe you could add that to your preview page (LUCENE-707), Grant? > I attach a patch here that uses the tool EMMA to generate the code coverage reports. EMMA is a very nice open-source tool released under the CPL (same license as junit). The patch adds three targets to common-build.xml: > - emma-check: verifys if both emma.jar and emma_ant.jar are in the ant classpath > - emma-instrument: instruments the compiled code > - generate-emma-report: generates an html code coverage report > The following steps are neccessary in order to generate a code coverage report: > - add emma.jar and emma_ant.jar to your ant classpath (download emma from http://emma.sourceforge.net/) > - execute ant target 'emma-instrument' (depends on compile-test, so it will compile all core and test classes) > - execute ant target 'test' to run the unit tests > - execute ant target 'generate-emma-report' > To view the emma report open build/test/emma/index.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org