Re: [Cuke4Duke] Alternative for Cuke4Duke maven Plugin

484 views
Skip to first unread message
Message has been deleted

Ruban

unread,
Jan 9, 2013, 11:56:00 AM1/9/13
to cu...@googlegroups.com
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

aslak hellesoy

unread,
Jan 9, 2013, 11:58:32 AM1/9/13
to Cucumber Users
On Wed, Jan 9, 2013 at 4:56 PM, Ruban <ruban....@gmail.com> wrote:
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.


Take a look at the java hello world project under examples. mvn test will run the features (via JUnit)

Aslak


--
-- 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
 
 

Message has been deleted

Ruban

unread,
Jan 9, 2013, 1:36:27 PM1/9/13
to cu...@googlegroups.com
Hi Aslak,

Thanks for your reply. Any suggestions for running Ruby Step definitions using cucumber-jvm with maven configurations.

Regards,
Ruban

aslak hellesoy

unread,
Jan 9, 2013, 1:40:17 PM1/9/13
to Cucumber Users
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



On Wed, Jan 9, 2013 at 6:35 PM, Ruban <ruban....@gmail.com> wrote:
Hi Aslak,

Thanks for your reply. Any suggestions for running Ruby Step definitions using cucumber-jvm with maven configurations.


Add cucumber-ruby to your pom (and remove cucumber-java), then put ruby stepdefs in the same directory as your feature files (or any directory below).

Aslak
 
Regards,
Ruban

On Wednesday, January 9, 2013 10:28:32 PM UTC+5:30, Aslak Hellesøy wrote:

Ruban

unread,
Jan 10, 2013, 8:32:13 AM1/10/13
to cu...@googlegroups.com


On Thursday, January 10, 2013 12:10:17 AM UTC+5:30, Aslak Hellesøy wrote:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
 
Hi Aslak,

    There are no plugins available for cucumber-ruby in maven repository. As I have lot of Ruby Step Definitions to be migrated. It will be helpful if you help me suggesting maven configurations for the same.

Regards,
Ruban

aslak hellesoy

unread,
Jan 10, 2013, 8:39:44 AM1/10/13
to Cucumber Users
On Thu, Jan 10, 2013 at 1:32 PM, Ruban <ruban....@gmail.com> wrote:


On Thursday, January 10, 2013 12:10:17 AM UTC+5:30, Aslak Hellesøy wrote:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
 
Hi Aslak,

    There are no plugins available for cucumber-ruby in maven repository.

Sorry, typo. It's called cucumber-jruby.

HTH,
Aslak
Reply all
Reply to author
Forward
0 new messages