kdocs
GitHub
SC - General
SC - General
  • Concurrency & Parallelism
  • Testing
    • Tests
    • TDD (Test Driven Development)
Powered by GitBook
On this page
  1. Testing

TDD (Test Driven Development)

You first create the test, than you create the domain objects and use cases.

Don't need to start by unit tests.

Usually unit test involve maturity, requires that you have the units.

3 TDD Laws

  • You cannot write any line of code before haven written a test that detects a possible failure.

  • You must write the fail scenario, and not more than what it needs to detect a failure.

  • You must not write more code than the enough to pass the tests.

PreviousTests

Last updated 6 months ago