Re: [JVM]How to run multiple feature files

3,144 views
Skip to first unread message

Tristan McCarthy

unread,
Dec 6, 2012, 4:10:20 AM12/6/12
to cu...@googlegroups.com
If you are just looking to run all feature files, just specify the directory rather than specific feature file:
@Options(features="relative/path/to/features")

To run specific subsets of features or scenarios, use tagging as described by Rodrigo.

On Tuesday, December 4, 2012 3:22:26 AM UTC, Amaresh wrote:
 have a doubt regarding running multiple feature files using Java.
I use like below to run individual feature file.
@Cucumber.Options(features="001-OQ_List.feature").
 
But when I have one more feature file I am not able to run in batch.Trying to add like below,but getting error
@Cucumber.Options(features="001-OQ_List.feature").
@Cucumber.Options(features="002-OQ_List.feature").
 
Please anybody help me to get rid of this problem ......

aslak hellesoy

unread,
Dec 6, 2012, 4:24:56 AM12/6/12
to Cucumber Users
On Thu, Dec 6, 2012 at 9:10 AM, Tristan McCarthy <tristan....@opencredo.com> wrote:
If you are just looking to run all feature files, just specify the directory rather than specific feature file:
@Options(features="relative/path/to/features")

To run specific subsets of features or scenarios, use tagging as described by Rodrigo.


Or, if you still want to specify files:

@Cucumber.Options(features={"001-OQ_List.feature", "002-OQ_List.feature"})
 

On Tuesday, December 4, 2012 3:22:26 AM UTC, Amaresh wrote:
 have a doubt regarding running multiple feature files using Java.
I use like below to run individual feature file.
@Cucumber.Options(features="001-OQ_List.feature").
 
But when I have one more feature file I am not able to run in batch.Trying to add like below,but getting error
@Cucumber.Options(features="001-OQ_List.feature").
@Cucumber.Options(features="002-OQ_List.feature").
 
Please anybody help me to get rid of this problem ......

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
 
 

Vladimir Sapozhnik

unread,
Mar 21, 2013, 5:31:26 PM3/21/13
to cu...@googlegroups.com
How can you do it from command line
i.e. mvn install -Dcucumber.options=<what goes here?>

Stan Kurdziel

unread,
Dec 11, 2014, 7:03:05 PM12/11/14
to cu...@googlegroups.com
For others like me who may end up here long after the original conversation, this worked in Cucumber JVM 1.2.0  (it did not work for me in 1.1.1):

mvn test -Dcucumber.options="classpath:dir/f1.feature classpath:dir/f2.feature"

See here for some additional docs: https://github.com/cucumber/cucumber-java-skeleton

Thanks,
-Stan
Reply all
Reply to author
Forward
0 new messages