Apologies if I have duplicated postPlease can someone suggest a link or and an example where a cucumber test has been started from an executable jar. I did try with java - jar JarfileName.jarbut I gotException in thread "main" cucumber.runtime.CucumberException: No features foundatat cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:47)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:
93)
at cucumber.runtime.Runtime.run(Runtime.java:81)
at cucumber.cli.Main.run(Main.java:20)
at cucumber.cli.Main.main(Main.java:12). Please give example on how to run these type of file from the CLI
Apologies if I have duplicated postPlease can someone suggest a link or and an example where a cucumber test has been started from an executable jar. I did try with java - jar JarfileName.jar
but I gotException in thread "main" cucumber.runtime.CucumberException: No features found
atat cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:47)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:
93)
at cucumber.runtime.Runtime.run(Runtime.java:81)
at cucumber.cli.Main.run(Main.java:20)
at cucumber.cli.Main.main(Main.java:12). Please give example on how to run these type of file from the CLI
--
-- 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
My RunTest class is in scr/test/java/uk/co/tel/oop
My step definition classes are in scr/test/java/uk/co/tel/oop/projectStepDef
I can run the test from command line using Maven on dev box. However, there is no internet connection on the test execution server, only way for me to execute is to package the classes into a Jar file, and then transfer this binary and execute from there
On Monday, 10 December 2012 22:15:20 UTC, Ayoseg wrote:
Apologies if I have duplicated postPlease can someone suggest a link or and an example where a cucumber test has been started from an executable jar. I did try with java - jar JarfileName.jar
but I gotException in thread "main" cucumber.runtime.CucumberException: No features found
atat cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:47)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:
93)
at cucumber.runtime.Runtime.run(Runtime.java:81)
at cucumber.cli.Main.run(Main.java:20)
at cucumber.cli.Main.main(Main.java:12). Please give example on how to run these type of file from the CLI
On Tuesday, 11 December 2012 at 15:35, Ayoseg wrote:
Hi, I have tried your suggestion and it didn't workSo I decided to investigate further and I found out I made a grave error - my source class
Sorry I meant to say files from my source folder directory. I need to the compiled classes and feature files in the jar file, do I not?
<transformer implementation="org.apache.
maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>cucumber.cli.Main</mainClass>
</transformer>
</transformers>