{"id":14969362,"url":"https://github.com/cronn/cucumber-junit5-example","last_synced_at":"2025-05-07T23:22:39.867Z","repository":{"id":40306454,"uuid":"290203804","full_name":"cronn/cucumber-junit5-example","owner":"cronn","description":"Example setup for Cucumber and JUnit 5 with Gradle","archived":false,"fork":false,"pushed_at":"2025-04-28T01:44:54.000Z","size":523,"stargazers_count":38,"open_issues_count":23,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-28T02:34:39.179Z","etag":null,"topics":["cucumber","gradle","java","junit5","template-project"],"latest_commit_sha":null,"homepage":"https://www.blog.cronn.de/en/testing/2020/08/17/cucumber-junit5.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cronn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-25T12:04:01.000Z","updated_at":"2025-04-28T01:44:58.000Z","dependencies_parsed_at":"2023-11-06T02:23:57.485Z","dependency_job_id":"c798fc27-89fb-4c17-847b-ce521e326f79","html_url":"https://github.com/cronn/cucumber-junit5-example","commit_stats":{"total_commits":166,"total_committers":6,"mean_commits":"27.666666666666668","dds":0.7048192771084337,"last_synced_commit":"faed61a4419a0b03722faec95ef16c6d1519ad76"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cronn%2Fcucumber-junit5-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cronn%2Fcucumber-junit5-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cronn%2Fcucumber-junit5-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cronn%2Fcucumber-junit5-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cronn","download_url":"https://codeload.github.com/cronn/cucumber-junit5-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252969052,"owners_count":21833403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cucumber","gradle","java","junit5","template-project"],"created_at":"2024-09-24T13:41:45.058Z","updated_at":"2025-05-07T23:22:39.844Z","avatar_url":"https://github.com/cronn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cucumber with JUnit5\n\nThis repository contains an example project that integrates [Cucumber](https://cucumber.io/) with [JUnit5](https://junit.org/junit5/). It is the same setup explained in the [blog post](https://www.blog.cronn.de/en/testing/2020/08/17/cucumber-junit5.html).\n\n## Quick Start\n\n```shell\n$ git clone https://github.com/cronn/cucumber-junit5-example your-own-tests\n$ cd your-own-tests\n$ ./gradlew test\n```\n\nGradle will execute all feature files which are located in the `src/test/resources/features` folder as specified in [RunAllCucumberTests](https://github.com/cronn/cucumber-junit5-example/blob/main/src/test/java/com/example/RunAllCucumberTests.java). In order to filter execution to just a subset of all features, use the `includeTags` property as in the following example. It uses [JUnit5 tag expressions](https://junit.org/junit5/docs/current/user-guide/#running-tests-tag-expressions):\n\n```shell script\n$ ./gradlew test --project-prop includeTags=\"first | awesome\"\n```\n\nIn order to ignore just a subset of features, use the `includeTags` property like this:\n\n```shell script\n$ ./gradlew test --project-prop includeTags=\"!second\"\n```\n\n[build.gradle.kts](https://github.com/cronn/cucumber-junit5-example/blob/main/build.gradle.kts#L36-L43) uses `cucumber.execution.parallel.enabled` to enable parallel test execution by default. Additionally, it uses the `cucumber.plugin` option to write a reports file to `build/reports/cucumber.ndjson`, an execution timeline to `build/reports/timeline` and an HTML report to `build/reports/cucumber.html`. All Cucumber features/rules/examples/scenarios annotated with `@disabled` are filtered by default and are not executed. This project declares an extra dependency to [picocontainer](http://picocontainer.com/) in order to show dependency injection within tests - remove it in case you don't need it. The Gradle configuration is annotated to help you make changes for your own test setup, thus feel free to modify it!\n\n[\u003cimg src=\"https://www.cronn.de/img/logo_name_rgb_1200x630.png\" alt=\"cronn GmbH\" width=\"200\"/\u003e](https://www.cronn.de/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcronn%2Fcucumber-junit5-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcronn%2Fcucumber-junit5-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcronn%2Fcucumber-junit5-example/lists"}