Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2.01 KB

File metadata and controls

53 lines (37 loc) · 2.01 KB

flow

version

build last commit license

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

  1. Use BDDT to create bddt building blocks for your code.
  2. 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.