Contents tagged with Development performance
Here will be another interesting benefit of writing unit tests which I've discovered recently for myself.
Imagine, that for you as for developer arrived some kind of bug. After investigation you've found that bug is caused with imporper method functionality. How can you fix method without unit tests? Way will be like this:
Add code fix
Execute application and make effort to re-prodcue bug
If bug is not re-produced, you make commit/push and enjoy life
If bug is not fixed, go to steps 1 - 3 one more time.
Here is how those steps can look like in unit test:
Add unit test that feed into method with bug wrong values
Add fix to code … more