TestBalloon styling – have it your way
Routinely, a test framework comes with its preferred style and TestBalloon is no exception: It registers test suites and tests via testSuite() and test() invocations.
As a DSL-based Kotlin-first framework, TestBalloon is obviously very flexible, letting us structure tests in plain Kotlin with parameters, loops and whatever it takes. But how much freedom does its API support? How far can we go if we want to change its look and feel?
Let's try, starting with two popular JavaScript styles from Jest and Mocha. But we won't stop there and find out if we could suppport the Gherkin grammar (Scenario/Given/When/And/Then) made popular by Cucumber, a BDD test framework.
Can we convince TestBalloon, via its public API, to accept a totally different structure?