Paul Brooks
10/20/2026, 10:27 AMOliver.O
10/23/2026, 6:13 PMPaul Brooks
11/08/2026, 12:37 PMGiven("I eat 48 cucumbers") { eatCucumbers(48) } states the step twice, once as a string and once as code, and nothing stops the two drifting apart. The parameterised version further down the same file gets values into the names with Given("I enter $initial") { set(initial) }, but the wording is still separate from the code. Kensa has no description strings. It parses the test source and renders the code itself, so given(aCustomerWithAnOverdueInvoice()) reads as “given a customer with an overdue invoice”, with the runtime values filled in. Change the code and the report changes with it.
On reports: TestExecutionReport gets a start and a finish event for each test element, plus the throwable if it failed. That’s a good hook for formatting results. But most of a Kensa report never reaches a test event: the values used inside the test, and the interactions between the system under test and its collaborators, which Kensa draws as sequence diagrams.
On integration: Kensa runs on JUnit, Kotest and TestNG today, and it assumes a test is a function. That’s why only Kotest’s AnnotationSpec is supported. TestBalloon tests are named lambdas, so an adapter would mean teaching the parser to find test("…") { } blocks in the source. That’s doable on the JVM, and I’d be happy to talk about it if there’s interest. Beyond the JVM, though, no: Kensa reads test source and uses reflection at runtime, so it’s JVM-only. So far everyone using it has been on the JVM anyway.
Parameterisation comes from the test framework underneath, e.g. JUnit’s @ParameterizedTest, and the parameter values appear in the report sentences.Oliver.O
11/11/2026, 8:19 PMPaul Brooks
11/12/2026, 10:17 AM