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/10/08 13:21:37 UTC

[jira] Created: (MAVEN-911) How to execute single Class by using Clover?

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-911


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-911
    Summary: How to execute single Class by using Clover?
       Type: New Feature

     Status: Unassigned
   Priority: Critical

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Shohara Farad Shaikh

    Created: Wed, 8 Oct 2003 6:21 AM
    Updated: Wed, 8 Oct 2003 6:21 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