https://github.com/cucumber/cucumber-jvm-examples
A colleciton of Cucumber-JVM example projects
https://github.com/cucumber/cucumber-jvm-examples
Last synced: 5 months ago
JSON representation
A colleciton of Cucumber-JVM example projects
- Host: GitHub
- URL: https://github.com/cucumber/cucumber-jvm-examples
- Owner: cucumber
- License: mit
- Created: 2025-12-06T20:17:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-18T23:37:42.000Z (6 months ago)
- Last Synced: 2025-12-20T06:47:13.886Z (6 months ago)
- Language: Java
- Size: 29.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Cucumber-JVM Examples
=====================
This is a collection of examples for Cucumber JVM using different test runners
and dependency injection frameworks. The projects are build with maven. You can run
each sample with `mvn test`.
For a minimal starter template repository see either:
* [Maven](https://github.com/cucumber/cucumber-jvm-starter-maven-java)
* [Gradle](https://github.com/cucumber/cucumber-jvm-starter-gradle-java)
## Test runner examples
Different examples showing how you can run Cucumber.
### CLI
The [calculator-java-cli](./calculator-java-cli) demonstrates running Cucumber through the CLI using the `maven-antrun-plugin`.
### JUnit 4
The [calculator-java-junit-4](./calculator-java-junit-4) demonstrates running Cucumber through JUnit 4.
### JUnit JUpiter
The [calculator-java-junit-jupiter](./calculator-java-junit-jupiter) demonstrates running Cucumber through JUnit JUpiter.
### TestNG
The [calculator-java-testng](./calculator-java-testng) demonstrates running Cucumber through TestNG.
## Language examples
Different examples showing how to use dependency injection.
### Java (Annotations)
The [calculator-java-cli](./calculator-java-cli) demonstrates running Cucumber with Java using annotation based step definitions.
### Java (Lambda)
The [calculator-java8-junit-jupiter](./calculator-java8-junit-jupiter) demonstrates running Cucumber with Java using lambda based step definitions.
### Kotlin (Annotations)
The [calculator-kotlin-junit-jupiter](./calculator-kotlin-junit-jupiter) demonstrates running Cucumber with Kotlin using lambda based step definitions.
## Dependency Injection examples
Different examples showing how to use dependency injection.
### Spring
The [spring-java-junit-jupiter](./spring-java-junit-jupiter) demonstrates the use of [cucumber-spring](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-picocontainer) for Spring for dependency injection.
### Pico Container
TODO: See [cucumber-picocontainer](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-picocontainer).
### Guice
TODO:
TODO: See [cucumber-guice](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-guice).