[JVM] Difficulty using cucumber.options from command line

147 views
Skip to first unread message

Robert

unread,
May 20, 2013, 3:18:53 PM5/20/13
to cu...@googlegroups.com
I'm having some difficulty running a specific command.  I'm attempting to run something like the following from the command line

 mvn clean verify -Dcucumber.options="--glue classpath:features/receiving/check_in_asset.feature:7 src/test/resources"

Unfortunately, the above command is not having the desired effect.  Instead of running the single scenario associated with line 7, it runs the entire suite of tests.  What might I be missing here?

My environment
cucumber-jvm: 1.1.2
JUnit: 4.11


aslak hellesoy

unread,
May 20, 2013, 4:29:52 PM5/20/13
to Cucumber Users
On Mon, May 20, 2013 at 2:18 PM, Robert <rest...@gmail.com> wrote:
I'm having some difficulty running a specific command.  I'm attempting to run something like the following from the command line

 mvn clean verify -Dcucumber.options="--glue classpath:features/receiving/check_in_asset.feature:7 src/test/resources"


The --glue option is for telling cucumber CLI where to find stepdefs and hooks.
The cucumber CLI will treat non-option arguments as feature files (with optional line numbers).

I'd recommend a working command line for you if I knew what backend you're using (java, groovy, scala, other) and what the full path to your feature files is. (is it ROOT/features/ or is it ROOT/src/test/resources/features or something else).

Aslak
 
Unfortunately, the above command is not having the desired effect.  Instead of running the single scenario associated with line 7, it runs the entire suite of tests.  What might I be missing here?

My environment
cucumber-jvm: 1.1.2
JUnit: 4.11


--
-- 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
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Robert

unread,
May 20, 2013, 5:41:45 PM5/20/13
to cu...@googlegroups.com


On Monday, May 20, 2013 1:29:52 PM UTC-7, Aslak Hellesøy wrote:



On Mon, May 20, 2013 at 2:18 PM, Robert <rest...@gmail.com> wrote:
I'm having some difficulty running a specific command.  I'm attempting to run something like the following from the command line

 mvn clean verify -Dcucumber.options="--glue classpath:features/receiving/check_in_asset.feature:7 src/test/resources"


The --glue option is for telling cucumber CLI where to find stepdefs and hooks.
The cucumber CLI will treat non-option arguments as feature files (with optional line numbers).

I'd recommend a working command line for you if I knew what backend you're using (java, groovy, scala, other) and what the full path to your feature files is. (is it ROOT/features/ or is it ROOT/src/test/resources/features or something else).


I am using cucumber-jvm with cucumber-picocontainer and cucumber-junit.  The full path to the feature files is ROOT/src/test/resources/features.

Robert

unread,
May 20, 2013, 6:22:37 PM5/20/13
to cu...@googlegroups.com


On Monday, May 20, 2013 2:41:45 PM UTC-7, Robert wrote:


On Monday, May 20, 2013 1:29:52 PM UTC-7, Aslak Hellesøy wrote:



On Mon, May 20, 2013 at 2:18 PM, Robert <rest...@gmail.com> wrote:
I'm having some difficulty running a specific command.  I'm attempting to run something like the following from the command line

 mvn clean verify -Dcucumber.options="--glue classpath:features/receiving/check_in_asset.feature:7 src/test/resources"


The --glue option is for telling cucumber CLI where to find stepdefs and hooks.
The cucumber CLI will treat non-option arguments as feature files (with optional line numbers).

I'd recommend a working command line for you if I knew what backend you're using (java, groovy, scala, other) and what the full path to your feature files is. (is it ROOT/features/ or is it ROOT/src/test/resources/features or something else).


I am using cucumber-jvm with cucumber-picocontainer and cucumber-junit.  The full path to the feature files is ROOT/src/test/resources/features.


My apologies, I neglected to say that I am using Java.  Sorry about that.
Reply all
Reply to author
Forward
0 new messages