{"id":19880051,"url":"https://github.com/kochetkov-ma/kotlin-bdd-example","last_synced_at":"2026-05-08T09:33:56.191Z","repository":{"id":50310767,"uuid":"518722834","full_name":"kochetkov-ma/kotlin-bdd-example","owner":"kochetkov-ma","description":"Kotlin BDD Cucumber / Kotest","archived":false,"fork":false,"pushed_at":"2023-04-19T10:58:44.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T12:23:03.482Z","etag":null,"topics":["bdd","cucumber","junit5","kotest","kotlin","spring","spring-test"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kochetkov-ma.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-07-28T06:10:48.000Z","updated_at":"2022-07-28T10:31:07.000Z","dependencies_parsed_at":"2025-01-11T17:53:19.662Z","dependency_job_id":"2b9d6179-13e0-42c9-8bdb-3171d94fe9ae","html_url":"https://github.com/kochetkov-ma/kotlin-bdd-example","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"a812792fefc8ea07c29929accb280a1cc20acbfd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kochetkov-ma/kotlin-bdd-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fkotlin-bdd-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fkotlin-bdd-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fkotlin-bdd-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fkotlin-bdd-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kochetkov-ma","download_url":"https://codeload.github.com/kochetkov-ma/kotlin-bdd-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fkotlin-bdd-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bdd","cucumber","junit5","kotest","kotlin","spring","spring-test"],"created_at":"2024-11-12T17:10:06.650Z","updated_at":"2026-05-08T09:33:56.171Z","avatar_url":"https://github.com/kochetkov-ma.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"BDD подход при написании тестов на Kotlin. `Junit5` / `Cucumber` / `Kotest`\n---\n\n## BDD и BDT презентация\n- [BDD.pptx](pptx/BDD.pptx)\n- [Требования](pptx/requirements.md)\n\n## Spring Boot\n```groovy\ndependencies {\n    implementation 'org.springframework.boot:spring-boot-starter'\n    implementation 'org.springframework.boot:spring-boot-starter-web'\n    implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'\n\n    // Sprint Boot Test\n    testImplementation 'org.springframework.boot:spring-boot-starter-test'\n    testImplementation 'io.rest-assured:rest-assured'\n}\n```\n[ValidationController](src/main/kotlin/org/brewcode/bdd/ValidationController.kt) с одним POST методом по пути `/validation`\n\n## `JUnit5` и Spring Boot Test\n```groovy\ndependencies {\n    // JUnit5\n    testImplementation('org.junit.jupiter:junit-jupiter')\n    testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')\n    testImplementation('org.junit.platform:junit-platform-suite')\n}\n```\n[Классический тест](src/test/kotlin/org/brewcode/bdd/unit/ValidationControllerClassicTest.kt)\n\n## `Cucumber 7` и Spring Boot Test\n```groovy\ndependencies {\n    // Cucumber\n    testImplementation 'io.cucumber:cucumber-java:7.4.1'\n    testImplementation 'io.cucumber:cucumber-junit-platform-engine:7.4.1'\n    testImplementation 'io.cucumber:cucumber-spring:7.4.1'\n}\n```\n- [Cucumber Runner](src/test/kotlin/org/brewcode/bdd/cucumber/ValidationControllerBddCucumberTest.kt)\n- [Cucumber Feature](src/test/resources/features/validation.feature)\n- [Cucumber Steps](src/test/kotlin/org/brewcode/bdd/step/ValidationControllerStep.kt)\n- [Cucumber Spring Configuration](src/test/kotlin/org/brewcode/bdd/step/CucumberSpringConfiguration.kt)\n\n## `Kotest 5` и Spring Boot Test\n```groovy\ndependencies {\n    // Kotest\n    testImplementation 'io.kotest:kotest-runner-junit5:5.3.2'\n    testImplementation 'io.kotest.extensions:kotest-extensions-spring:1.1.1'\n}\n```\n[Kotest](src/test/kotlin/org/brewcode/bdd/kotest/ValidationControllerBddKotestTest.kt)\n\n## `Junit5` + `Allure` и Spring Boot Test \n```groovy\ndependencies {\n    implementation 'io.qameta.allure:allure-java-commons:2.21.0'\n}\n```\n[JUnit5 BDD](src/test/java/org/brewcode/bdd/unit/ValidationControllerJunitBddTest.java)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkochetkov-ma%2Fkotlin-bdd-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkochetkov-ma%2Fkotlin-bdd-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkochetkov-ma%2Fkotlin-bdd-example/lists"}