repositories {
mavenCentral()
}
dependencies {
testImplementation("at.florianschuster.bddt:bddt:$version")
}see changelog for versions
bddt is a behavior-driven-development-testing tool for unit tests. bddt tests contain the following building blocks:
Given: precondition(s) for a system under testWhen: action(s) to perform on the system under testThen: assertion(s) on the system under test
This structure unifies test cases to enable reuse these building blocks.
- Use BDDT to create bddt building blocks for your code.
- Use Steps when writing tests with multiple
Stepbuilding blocks.
- Counter: simple counter class with dependency
- Main: small cli to execute counter
- CounterTest: test for counter using the bddt library
visit my website.
