Monday Mar-09-2020
Focusing on TDD, today i learnt about “dependency injection” and its importance when it comes to testing. Many times developers are unable to test code properly because of poor design. It is a concept that every developer should learn because it makes things so much better not just in testing but in software development as a whole.
What surprised me today is how easy dependency injection makes testing code.
My frustration was mainly around testing user input that goes in through a loop.