
installation
repositories {
mavenCentral()
}
dependencies {
testImplementation("at.florianschuster.bddt:bddt:$version")
}
see changelog for versions
why?
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 test
When: action(s) to perform on the system under test
Then: assertion(s) on the system under test
This structure unifies test cases to enable reuse these building blocks.
how
- Use BDDT to create bddt building blocks for your
code.
- Use Steps when writing tests with multiple
Step
building blocks.
example
- Counter: simple counter class with dependency
- Main: small cli to execute counter
- CounterTest: test for counter using the
bddt library
author
visit my website.