Member-only story

My Experience with Test-Driven Development (TDD)

Taran
codeburst
Published in
4 min readOct 11, 2020

Anyone who has worked on an I.T. project will know this familiar scenario: a project with a tight timeline has a bug that needs fixing before deployment. Once the code has been written, manual testing is performed before the code review is done, and the code is merged to the source control. You then run the risk that more bugs and issues may have been introduced from the code merge; meaning that you’ll either need to write more tasks to resolve this issue or the new code changes will need to be reverted in source control.

A lot of things could lead to problematic code. The following are a few main reasons for this:

  • Lack of test cases written for the application
  • The tests were written after writing the functional code
  • Failing to regression test

So how might be avoid this scenario? I suggest using Test-Driven Development (TDD).

What is TDD

TDD is an approach to development that emphasizes testing code before the code is written.

In the first step, the developer writes the test. Then, the test is run to see if it…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Taran

I am a Full stack developer. I enjoy learning and building new skills, and sharing what I’ve learned.

Responses (1)

Write a response

Moreover, refactoring the code became effortless and I was able to accomplish it with less effort and more confidence.

great article !
you missed the point that with TDD you cannot write uncovered code.
So. no gold plating is allowed

--