You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/12/05 18:49:56 UTC
[jira] Updated: (MPCLOVER-9) How to execute single Class by using Clover?
The following issue has been updated:
Updater: Vincent Massol (mailto:vmassol@pivolis.com)
Date: Fri, 5 Dec 2003 11:49 AM
Changes:
environment changed to
priority changed from Critical
Fix Version changed to 1.4
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPCLOVER-9&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=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: Unassigned
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-clover-plugin
Fix Fors:
1.4
Assignee:
Reporter: Shohara Farad Shaikh
Created: Wed, 8 Oct 2003 6:21 AM
Updated: Fri, 5 Dec 2003 11:49 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org