Can i get maven dependency of Capybara? - java

I have one rails application. Right now i am using
Parallel_test
gem with Capybara, Cucumber testing framework. Now i am trying to use
Cucumber-JVM
Since previously i have written all my scenario steps in Capybara, so is there any maven dependency of capybara? So that i can use that in my pom file and use existing capybara steps as it is in
Cucumbr-JVM
Please suggest.

No, you can't because there is no port of Capybara to Java. But you can always write your tests in Ruby and than run them from some other Java project. This post explains how to do that.

Related

importing Maven Akka project into eclipse

I am trying my hands on the maven java Akka tutorials on the calculation of pi.
Please I am new to both: maven and Akka but want know if it is possible
to create a maven akka project and then import the project into
Eclipse IDE and be able to run the project in the eclipse IDE.
If it is possible I will be happy for some directions or tutorials
your suggestions are welcomed.
Here You have some information how start Akka, but first You have to know something about maven.
Since the exact link in tostao's post does not work anymore here is the link for the latest version of akka:
Akka Getting Started. Consider replacing current in the url with the actual version, 2.9.10 as of writing.
If you use eclipse you might want to have a look into scala-ide.
Typesafe, the company behind Akka and an important part of the scala world, also offer their own build tool i.e. sbt. Especially their typesafe activator templates are build on top of sbt which might suggest a preference of sbt over maven from their part.

Is there a Java continuous testing plugin for Maven?

I'm looking for a plugin that would run in a console continuously to scan a Maven project's test sources directory, and when it detects a change kicks off a test cycle. Something analogous to mvn scala:cc or the Scala Build Tool, but for Java. Can anyone point me towards one?
I have personally used sbt even for a java only project just for continuous test feature.
I added a sbt build file to a maven based project and use sbt when developing, but use maven when building the final package, starting embedded jetty etc and this has worked out quite well.
I've just discovered that the scala-maven-plugin supports both continuous compilation & testing, as well as cross-compilation (Java + Scala). So it's possible to use it over a pure Java build and get all the continuous build goodness.
Recently, I have had a need for a solution to this. Having been learning scala and finding about the goodness of sbt ~test, I want to apply it to Java projects that do not have continuous test.
Using the scala-maven-plugin that you mentioned, I have created a github seed that will run Java Junit tests everytime I save a Java source or a Java test.
Check it out:
https://github.com/ailveen/maven-scala-java-continuous-test
The project is very simple right now (contains only Java files because that is my current need) but in the future I hope to add scala test (or specs2 or scalacheck) so it works with mixed java and scala files.
Hope you find it useful.
It is not exactly for Maven, but JUnit Max does continuous testing and if you're on Eclipse it might be the tool you would like to check out

Example open source projects built using maven and test with TestNG

I'm looking at adding TestNG support to http://pitest.org and could do with some real and dirty code to try it out on.
Can anyone suggest some smallish open source projects that are build using maven and use TestNG for unit testing?
For clarity - I am not asking how to configure maven to use TestNG, I am looking for some example projects to use as input to a mutation testing tool.
Off the top of my head, Seam and Tapestry both use TestNG. Obviously, TestNG itself uses TestNG.
There is also a lot of activity on the Selenium front, check out the Selenium boards.
Usually you only need to add the testng dependency to your pom with scope test and surefire will handle that already...(may be you need to update surefire plugin).

A basic question on java/maven/testng

I am using RHEL 5. I want to be able to write a basic Java class, write corresponding test methods using testNG and be able to say something like "mvn install" which will run test cases and install the built jar.
Is there something called maven plugin to support testNG on RHEL? or there is no such thing and above can be achieved by default on linux. ALso how?
The usual maven plugin for testing, the maven-surefire-plugin, handles testng as well as junit.
There are a number of plugins for Maven that will auto-run your tests. I would suggest starting with an IDE solution, such as one provided by the Spring STS eclipse-based suite, which has pre-built project templates, including *.pom files already set up.
If you are looking to do more than that "out of the box" functionality, reading through the Maven docs and perhaps a book would probably be a good idea. In general, whenever you have a really powerful and flexible tool like Maven, things can get complicated really fast, so having a solid understanding is critical to be able to use the tool successfully.

How do you setup a maven java project that can also make use of groovy?

I'm working on a large existing java project using maven to manage our builds / releases.
I'm interested in using groovy to replace some of our Java classes where we can benefit from it's dynamic nature.
How do I go about doing this using maven?
Have you tried the gmaven plugin?
This is listed on the Groovy Wiki, also have a look at GMaven.

Categories

Resources