Skip to content

floschu/bddt

Repository files navigation

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.

About

🧪 a framework for behaviour-driven development testing

Topics

Resources

License

Stars

Watchers

Forks

Languages