Cucumber-Scala is published in the central Maven repository. You can install it by adding dependencies to your project.

Dependencies

Make sure the Cucumber version is the same for all Cucumber dependencies.

Maven

<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-scala_2.13</artifactId>
    <version>6.10.4</version>
    <scope>test</scope>
</dependency>

You can now run Cucumber from the command line or run Cucumber with Maven.

Sbt

libraryDependencies += "io.cucumber" %% "cucumber-scala" % "6.10.4" % Test

JUnit 5 integration

It is also possible to use cucumber-junit-platform-engine to run your Cucumber test suite.

JUnit 4 integration

It is also possible to use cucumber-junit to run your Cucumber test suite.

Assertions

Cucumber does not come with an assertion library. Instead, use the assertion methods from a unit testing tool.

You can help us improve this documentation. Edit this page.