I'm having some difficulty running a specific command. I'm attempting to run something like the following from the command linemvn 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 environmentcucumber-jvm: 1.1.2JUnit: 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.
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 linemvn 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).
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 linemvn 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.