I am aware of Cucumber-Jvm project developed. In my project I have done
all my Step definitions in Ruby as I was familiar with that. Can you
please suggest me, how I need to configure my Maven pom in order to run
Cucumber Features using mvn integration-test command. It will be helpful
if you give me valuable suggestions regarding the same.
On Wednesday, January 9, 2013 3:46:35 AM UTC+5:30, Ruban wrote:
Hi All,
Greetings!!!
I have been so much familiar in using Cuke4Duke maven plugin in my project for Running Cucumber features(step definitions written in ruby language) and getting a HTML report with the help of Cuke4Duke. Please find below the configuration of Cuke4Duke in my project.
<!--cuke4duke -->
<repository>
<id>codehaus</id>
<url>http://repository.codehaus.org</url>
</repository>
<repository>
<id>cukes</id>
<url>http://cukes.info/maven</url>
</repository>
<pluginRepositories>
<!--cuke4duke -->
<pluginRepository>
<id>cukes</id>
<url>http://cukes.info/maven</url>
</pluginRepository>
</pluginRepositories>
<!--cuke4duke -->
<dependency>
<groupId>org.picocontainer</groupId>
<artifactId>picocontainer</artifactId>
<version>2.10.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cuke4duke</groupId>
<artifactId>cuke4duke</artifactId>
<version>0.4.4</version>
<scope>test</scope>
</dependency>
<plugin>
<!--cuke4duke -->
<groupId>cuke4duke</groupId>
<artifactId>cuke4duke-maven-plugin</artifactId>
<version>0.4.4</version>
<configuration>
<jvmArgs>
<jvmArg>
-Dcuke4duke.objectFactory=cuke4duke.internal.jvmclass.PicoFactory
</jvmArg>
<jvmArg>-Dfile.encoding=UTF-8</jvmArg>
</jvmArgs>
<cucumberArgs>
<cucumberArg>--color</cucumberArg>
<cucumberArg>--verbose</cucumberArg>
<cucumberArg>--strict</cucumberArg>
<cucumberArg>--guess</cucumberArg>
<cucumberArg>--backtrace</cucumberArg>
<cucumberArg>--out</cucumberArg>
<cucumberArg>${project.build.directory}/cucumber-reports</cucumberArg>
<cucumberArg>--verbose</cucumberArg>
<cucumberArg>--format</cucumberArg>
<!-- cucumberArg>pretty</cucumberArg -->
<cucumberArg>html</cucumberArg>
<cucumberArg>--out</cucumberArg>
<cucumberArg>Test_Results.html</cucumberArg>
</cucumberArgs>
<gems>
<gem>install cuke4duke --version 0.4.4</gem>
<gem>install rspec --version 2.6.0 </gem>
<gem>install httparty --version 0.8.0</gem>
<gem>install jruby-openssl --version 0.7.6.1</gem>
</gems>
</configuration>
<executions>
<execution>
<id>run-features</id>
<phase>integration-test</phase>
<goals>
<goal>cucumber</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
I have all cuke4duke jars in my .m2 repository(installed 2 years back) which does not cause a problem for me in running mvn integration-test. But other people who tried using the same configurations, they are facing issues in resolving the following url defined in the repository http://cukes.info/maven which I found to be no longer available. Also, I can share my installed jars to them manually which does not solve the actually solution.
It was very easy for me to use Cuke4Duke to execute and generate reports. Does anybody have any idea to resolve the problem of executing Cucumber features and generation reports in HTML without using Cuke4Duke. Way to configure pom for the same?
It will be more helpful for me to resolve this if any could guide me on this as soon as possible