Questions tagged [cucumber-jvm]

Cucumber-JVM is a Cucumber implementation for the most popular JVM languages. Cucumber-JVM currently supports Java. There are also implementations for the following JVM languages, but as of version 2.1.0, they are unsupported: Groovy Scala Clojure Jython JRuby Rhino JavaScript Gosu

Cucumber-jvm is a Java-based tool for behavior-driven development.

Cucumber-JVM is a pure Java implementation of Cucumber, with native support for the most popular JVM languages: Java, Scala, Groovy, Clojure, Rhino, Jython and JRuby.

Cucumber-JVM is the successor of Cuke4Duke, which was the Ruby implementation of Cucumber, running on JRuby. It is faster and also easier to run than its predecessor.

See GitHub project

1356 questions
0
votes
1 answer

How to get Cucumber-JVM to work with Gradle and Guice?

Cucumber-JVM and Gradle don't play along nicely. This is well known, and a workaround has existed for some time. However, I can't get said workaround to work with some more advanced tests using Guice as a DI container: Cucumber does not pick up the…
Urs Reupke
  • 6,791
  • 3
  • 35
  • 49
0
votes
2 answers

Cucumber feature files are not executed using Maven

Hi I have setUp a Java project using Maven in eclipse. I am facing an issue whenever I am trying to run the script. Its is executed by the not opening the desired website which I am parsing from the feature file. Please have a look to the following…
Zain
  • 5,391
  • 11
  • 34
  • 34
0
votes
1 answer

Issues regarding Cucuber.json file which is used for Cucumber reports

I was trying to integrate my cucumber tests with maven-cucumber-reporting(from masterthought.net). I downloaded their Jenkins plugin and incorporated in my pom.xml file. I have 2 tests in my eclipse project and when I ran these tests though maven it…
prashanth
  • 61
  • 1
  • 5
0
votes
1 answer

cucumber grails - feature with unimplemented steps still passes

I have very recently started trying out BDD using cucumber and grails. I'm following a tutorial from the cucumber recipes book, and have created a feature but not yet created the step definitions to implement the test. Feature: Furious Fowl Game …
t_barbz
  • 747
  • 2
  • 13
  • 21
0
votes
2 answers

Cucumber JVM for Scala with Guice & Cucumber JUnitRunner?

We are using Cucumber JVM for Scala and as the application grows it would be nice to cucumber-guice in the picture as well. The problem is that I can't see any useable examples/tutorials/documentation on how to do it. I do have a working…
Balint Pato
  • 1,497
  • 1
  • 13
  • 28
0
votes
2 answers

Share spring container between test application and embedded tomcat

We are using cucumber-jvm to write an integration test layer in our application. One of the challenges we are finding is managing the database between the tests and the web application. A typical scenario is that we want to persist some entities…
Jeffrey Cameron
  • 9,975
  • 10
  • 45
  • 77
0
votes
1 answer

Newline character in Cucumber-JVM parameters

Is there any way of passing parameters containing newline characters into Cucumber-JVM scenarios? As a workaround I'm putting "\n" strings into the parameter and replacing them with a newline at the beginning of the scenario method but it feels as…
Lrnk
  • 110
  • 2
  • 10
0
votes
3 answers

What is the cucumber-jvm equivalent of Cucumber.wants_to_quit?

I am writing tests using cucumber-jvm and I want the system to stop running tests on the first scenario that fails. I found example code written for Cucumber Ruby that does this via an After hook. I am searching for the correct java class and…
kennbrodhagen
  • 4,258
  • 2
  • 26
  • 21
0
votes
1 answer

@Given statement is not running in cucumber-jvm

import package org.test.launch; import static junit.framework.Assert.*; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import…
user1917213
  • 1
  • 1
  • 1
0
votes
1 answer

DataTable.diff( List ) or List in cucumber-jvm

I'm currently porting a test suite originally written in ruby to java. List The first step I'm trying to port parses CSV data into a List @Then("test 1") public void test1( DataTable expectedTable ) { List tableData =…
Nicholas Albion
  • 3,096
  • 7
  • 33
  • 56
0
votes
1 answer

Logback or slf4j logging in groovy unit tests with Maven and GMaven?

I am trying to get logging enabled in my Grovvy unit tests that I am running with Cucumber-jvm. In my tests I have imported: import groovy.util.logging.Slf4j Then added @Slf4j However, when I run any of these commands: mvn test…
Mick Knutson
  • 2,297
  • 3
  • 25
  • 48
0
votes
2 answers

How do you Map a Cucumber DataTable to Scala?

Code: val someVariableIWantToSave //I do not know what to do here When("""^this request is sent to the XYZ service:$"""){ (requestData:DataTable) => //// we might want to do somethign else with Datatable in the mapping of the feature,…
Ryan Medlin
  • 199
  • 1
  • 2
  • 7
0
votes
1 answer

Is there any way to develop a Java 1.5 application using Cucumber-JVM?

Cucumber-JVM has dependencies on Java 1.6 My client's application runs on Java 1.5 and this can't be changed at the moment Does anyone know a way to use Cucumber-JVM to exercise my client's application?
Seb Rose
  • 3,628
  • 18
  • 29
0
votes
2 answers

What do I do about database loading with Cucumber JVM/JUnit

I want to use a feature file with cucumber jvm that will hold the data for the test. I am testing a method that uses hibernate to load an object before processing. public Deal getDealById(Long dealId) { deal = template.get(Deal.class, dealId); …
Adam
  • 95
  • 1
  • 2
  • 8
0
votes
1 answer

In Cucumber-JUnit, is there a way to control the order in which features get reported?

I am running a basic Cucumber-Jvm test with two features called "Basic Math" and "Advanced Math" (in files basic_math.feature and advanced_math.feature respectively). However, when the HTML report gets generated "Advanced Math" gets displayed…
Sled
  • 18,541
  • 27
  • 119
  • 168