[
http://jira.codehaus.org/browse/MFITNESSE-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160327#action_160327
]
Nick Roberts commented on MFITNESSE-28:
---------------------------------------
Below is the patch which I posted to [email protected] before Christmas.
This time I've tried to use JIRA with which I'm not very familar, so I don't
know if sending it
as a comment is the right thing to do, but here it is anyway.
Index: src/main/java/org/codehaus/mojo/fitnesse/FitnesseRunnerMojo.java
===================================================================
--- src/main/java/org/codehaus/mojo/fitnesse/FitnesseRunnerMojo.java
(revision 8361)
+++ src/main/java/org/codehaus/mojo/fitnesse/FitnesseRunnerMojo.java
(working copy)
@@ -232,6 +232,13 @@
private List classPathSubstitutions = new ArrayList();
/**
+ * Fitnesse suiteFilter option
+ *
+ * @parameter default-value=""
+ */
+ private String suiteFilter;
+
+ /**
* Command for the execution of the FitRunner
*/
private FCommandline mCmd = new FCommandline();
@@ -704,6 +711,13 @@
}
mCmd.createArgument().setValue( tFileName );
mCmd.createArgument().setValue( "-nopath" );
+
+ if ( suiteFilter != null && suiteFilter.length() > 0 )
+ {
+ mCmd.createArgument().setValue( "-suiteFilter" );
+ mCmd.createArgument().setValue( suiteFilter );
+ }
+
mCmd.createArgument().setValue( pServer.getHostName() );
mCmd.createArgument().setValue( "" + pServer.getPort() );
@@ -777,6 +791,16 @@
/**
* Accessor.
*
+ * @param suiteFilter The suiteFilter option to use when runinng fitnesse
tests.
+ */
+ void setSuiteFilter( String suiteFilter )
+ {
+ this.suiteFilter = suiteFilter;
+ }
+
+ /**
+ * Accessor.
+ *
* @param pluginArtifacts The Maven resource.
*/
public void setPluginArtifacts( List pluginArtifacts )
> Suite Fuiltering - Feature Request
> ----------------------------------
>
> Key: MFITNESSE-28
> URL: http://jira.codehaus.org/browse/MFITNESSE-28
> Project: Maven 2.x Fitnesse Plugin
> Issue Type: New Feature
> Reporter: Mike Grayson
> Assignee: pkernevez
>
> It would be very helpful if suite filtering was supported as per
> http://wiki.agiletour.com/FitNesse.TestSuites .
> Suite filtering allows a test run to omit some FitNesse tests from a suite.
> Another request for this feature is described here:
> http://archive.codehaus.org/lists/org.codehaus.mojo.dev/msg/9713116ffdba49f7b412787b4b4d7...@octopke
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email