TDD vs TLD and what is the minimum code coverage needed

Ahmad Mhaish
The Startup
Published in
6 min readMay 13, 2020

--

Test Last Development (TLD) and Test Driven Development (TDD) are two major testing processes. We will talk about the difference between these two, what is the best one that suits start-ups, and to which level of code coverage may do the balance between bugs-free and fast feature releasing.

TDD

TDD becomes so famous in the last decade, its an Agile development process that is based on the repetition of a very short development cycle:

  • The developer writes an (initially failing) automated test case for a specific feature
  • The developer produces the minimum amount of code to pass that test
  • The developer refactors the new code to match the standards

In the TDD world, you will hear also BDD “Behavioral-Driven Development” which is a TDD using a specific testing approach describing the behavior in a simple language. The Given-When-Then approach is used for writing test cases most of the time in BDD.

There is also ATDD “Acceptance test-driven development”, a type of TDD where it focuses on capturing the accurate requirement, not like BDD…

--

--

Ahmad Mhaish
The Startup

I am a Software and AI engineer that have a great passion for integrating technology with businesses and human life.