Message:
The following issue has been closed.
Resolver: Vincent Massol
Date: Fri, 16 Jul 2004 2:39 PM
Done even though I don't believe this is the best way to achieve your use case. I
highly suggest you use your IDE Clover plugin which will a much much faster way to
check how much your code is tested by your unit tests. For example, for JBuilder
(which I know you're using), see http://www.cenqua.com/clover/doc/jbuilder/index.html
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPCLOVER-9
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPCLOVER-9
Summary: How to execute single Class by using Clover?
Type: New Feature
Status: Closed
Priority: Minor
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-clover-plugin
Fix Fors:
1.6
Assignee: Vincent Massol
Reporter: Shohara Farad Shaikh
Created: Wed, 8 Oct 2003 6:21 AM
Updated: Fri, 16 Jul 2004 2:39 PM
Description:
Hi,
While generation of Clover report, I found that it generates report
for all Test classes i.e. given in project.xml file.
<include>**/Test*.java</include>
To generate the report of single Test class, I need to modify above
statement as follows.
e.g. <include>**/TestManualSim*.java</include>
So each time, it needs to modify project.xml for report generation.
So to avoid change in project.xml file, following changes need to be
done in maven-clover-plugin. Following is my suggestion.
<!--If there is no tescase argument, generate report for all
Testcases -->
<j:if test="${empty(testcase) == 'true'}">
<attainGoal name="test:test"/>
</j:if>
<!--If there is tescase argument, generate report for that
particular
testcase -->
<j:if test="${empty(testcase) == 'false'}">
<attainGoal name="test:single"/>
</j:if>
So it takes dynamically testclass name as command argument for report
generation.
e.g. maven -Dmaven.junit.fork=yes -Dtestcase=MyTest
clover:swing-report
Thanks & Regards,
Shohara
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]