Test-Driven Development: Is it Mandatory?

  1. Build the right product: TDD ensures your system will meet the requirements that have been defined earlier that will be written on your tests
  2. Work Systematically: The tests would help you understand what problems need to be resolved based on the tests you have built earlier. The specific tasks will help you to work
  3. Better Cases Handling: Since the tests has been developed earlier, you have to make sure the tests are designed to cover the possible scenarios, including the edge cases. Thus, it can save your time to debug because your code is designed for all context-relevant scenario.
  1. SOOO many codes to code: Sometimes, for a simple function in code, the tests need more lines of code than the original code.
  2. Time Consuming: For some beginners to a particular framework, understanding the tests is harder to understand the implementation itself. That’s why sometimes building tests is way longer than the actual implementation. Especially when you are forced to have 100% code coverage.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store