https://github.com/rbiedrawa/spring-boot-acceptancetests-cucumber-demo
This sample application is intended to show the acceptance testing approach using Cucumber and Junit5.
https://github.com/rbiedrawa/spring-boot-acceptancetests-cucumber-demo
acceptance-testing cluecumber cucumber cucumber-jvm gradle h2 junit5 lombok reporting spring-boot spring-data-jpa
Last synced: 3 months ago
JSON representation
This sample application is intended to show the acceptance testing approach using Cucumber and Junit5.
- Host: GitHub
- URL: https://github.com/rbiedrawa/spring-boot-acceptancetests-cucumber-demo
- Owner: rbiedrawa
- License: mit
- Created: 2021-04-11T14:49:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-31T02:01:35.000Z (over 3 years ago)
- Last Synced: 2025-01-26T18:17:20.558Z (5 months ago)
- Topics: acceptance-testing, cluecumber, cucumber, cucumber-jvm, gradle, h2, junit5, lombok, reporting, spring-boot, spring-data-jpa
- Language: Java
- Homepage:
- Size: 341 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Acceptance tests with Spring Boot, Cucumber and Junit5 (demo)
This sample application is intended to show the `acceptance testing` approach using [Cucumber](https://cucumber.io/docs/installation/java/) and [Junit5](https://junit.org/junit5/).

## Features
* `Junit5` integration.
* Separate acceptanceTest `test set`.
* `Cucumber` integration.
* Custom Cucumber hook for `@Transactional` rollback.
* `Cluecumber Report plugin` integration for beautiful html reports.## Getting Started
### Prerequisites
* Java 11
### Usage
* Run **acceptance tests**.
```shell
./gradlew acceptanceTest
```* Generate **html reports**.
```shell
./gradlew generateCluecumberReports
```
*** *report will be generated under:* `build/reports/acceptanceTest/index.html`.* Run tests based on **tag**.
```shell
./gradlew acceptanceTest -Dcucumber.filter.tags="@Slow"
```* Use **@Disabled** to ignore cucumber test.
## References
* [Cucumber](https://cucumber.io/)
* [Junit5](https://junit.org/junit5/)
* [Cluecumber Report Gradle Plugin](https://github.com/JavaanseHZ/cluecumber-report-gradle-plugin)
* [Cluecumber Report Maven Plugin](https://github.com/trivago/cluecumber-report-plugin)## License
Distributed under the MIT License. See `LICENSE` for more information.