{"id":25776321,"url":"https://github.com/kensa-dev/kensa","last_synced_at":"2026-04-06T12:03:48.707Z","repository":{"id":49391521,"uuid":"515073953","full_name":"kensa-dev/kensa","owner":"kensa-dev","description":"A BDD testing framework for Kotlin \u0026 Java","archived":false,"fork":false,"pushed_at":"2026-02-09T14:19:57.000Z","size":3445,"stargazers_count":10,"open_issues_count":31,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-09T19:12:31.537Z","etag":null,"topics":["agile-methodologies","bdd","bdd-framework","fluent","java","junit5","kotlin","tdd","testing"],"latest_commit_sha":null,"homepage":"https://kensa.dev/","language":"Kotlin","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/kensa-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-18T07:13:17.000Z","updated_at":"2026-02-09T14:14:46.000Z","dependencies_parsed_at":"2023-01-23T10:01:15.757Z","dependency_job_id":"17dad031-b77c-43bd-8497-130a5df654c2","html_url":"https://github.com/kensa-dev/kensa","commit_stats":null,"previous_names":[],"tags_count":87,"template":false,"template_full_name":null,"purl":"pkg:github/kensa-dev/kensa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kensa-dev%2Fkensa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kensa-dev%2Fkensa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kensa-dev%2Fkensa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kensa-dev%2Fkensa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kensa-dev","download_url":"https://codeload.github.com/kensa-dev/kensa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kensa-dev%2Fkensa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29507588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: 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":["agile-methodologies","bdd","bdd-framework","fluent","java","junit5","kotlin","tdd","testing"],"created_at":"2025-02-27T06:01:21.506Z","updated_at":"2026-04-06T12:03:48.695Z","avatar_url":"https://github.com/kensa-dev.png","language":"Kotlin","readme":"# \u003cimg src=\"./Logo.svg\" alt=\"Kensa Logo\" style=\"width: 40px; vertical-align: middle;\"/\u003e Kensa\n\n![Latest Release](https://img.shields.io/github/v/release/kensa-dev/kensa)\n\n**Kensa** is a BDD testing framework for Kotlin and Java. Write Given-When-Then tests directly in code — no Gherkin files, no step definitions. Kensa parses your test source at runtime to produce rich HTML reports and sequence diagrams.\n\nCheck out the [documentation](https://kensa.dev) for quickstarts, API reference, and examples.\n\n| Write this… | …get this |\n|---|---|\n| ![Kensa test written in Kotlin](kensa.dev/static/img/code-example.png) | ![Kensa generated HTML report with sequence diagram](kensa.dev/static/img/report-example.png) |\n\n## Features\n\n- **Code-first BDD** — Given-When-Then structure in plain Kotlin/Java; no external DSL files\n- **HTML reports** — generated directly from test source, always in sync with the code\n- **Sequence diagrams** — visualise interactions between actors captured during test execution\n- **Framework support** — JUnit 5, Kotest, TestNG\n- **Assertion libraries** — Kotest, AssertJ, Hamcrest, HamKrest\n\n## Getting Started\n\nAdd the dependency for your test framework:\n\n```kotlin\n// build.gradle.kts\ndependencies {\n    testImplementation(\"dev.kensa:kensa-junit:\u003cversion\u003e\")   // JUnit 5\n    // or\n    testImplementation(\"dev.kensa:kensa-kotest:\u003cversion\u003e\")  // Kotest runner\n\n    // Assertions bridge (pick one or more)\n    testImplementation(\"dev.kensa:kensa-kotest:\u003cversion\u003e\")\n    testImplementation(\"dev.kensa:kensa-assertj:\u003cversion\u003e\")\n}\n```\n\nFind the latest version on the [releases page](https://github.com/kensa-dev/kensa/releases).\n\nSee the [Kotlin quickstart](https://kensa.dev/docs/quickstart/kotlin-quickstart) or [Java quickstart](https://kensa.dev/docs/quickstart/java-quickstart) for a full setup walkthrough.\n\n## Tooling\n\n### CLI — serve reports locally\n\nEvery release ships pre-built binaries for macOS (Intel + Apple Silicon), Linux, and Windows.\nDownload `kensa-\u003cos\u003e-\u003carch\u003e` from the [latest release](https://github.com/kensa-dev/kensa/releases/latest), then:\n\n```bash\nkensa serve \u003cpath-to-report-dir\u003e\n```\n\nThis starts a local HTTP server and opens your HTML reports in the browser.\n\n### Claude Code skill — AI-assisted test review\n\nEvery release also ships `kensa-test.skill`, a [Claude Code](https://claude.ai/code) skill that reviews Kensa tests for idiomatic style, fluency violations, and best-practice patterns.\n\nInstall it once:\n\n```bash\nclaude plugin install kensa-test.skill\n```\n\nThen invoke it in any Claude Code session:\n\n```\n/kensa-test review this test\n```\n\nThe skill checks for fluent English in rendered test bodies, correct use of Fixtures and CapturedOutputs, semantic assertion naming, composable setup toolboxes, and the typed context/mixin pattern for multi-stub tests.\n","funding_links":[],"categories":["测试","Projects"],"sub_categories":["Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkensa-dev%2Fkensa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkensa-dev%2Fkensa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkensa-dev%2Fkensa/lists"}