I know there's a lot of stuff on TDD and i'm trying to pick up the practice too. But i wonder is it a good idea to to TDD your bug fix too?
I was thinking along the lines of find the bug and narrow it down. Write unit test to ensure that it will now pass whatever problem that it previously caused. Write more unit test for other breakable conditions. And finally write unit test to test for Integration test, as we don't have any unit test prior to this, so whenever i'm fixing a bug i'm always worried that i might accidentally break something.
Thanks.
Debugging is done by the developer or the programmer. 4. The test engineers perform manual and automated test cases on the application, and if they detect any bug or error, they can report back to the development team for fixing. The developers will find, evaluates, and removes the software errors.
Testing is done by the tester. Debugging is done by either programmer or developer. There is no need of design knowledge in the testing process. Debugging can't be done without proper design knowledge.
Developers have less debugging to doFewer bugs and errors are the primary benefit of the TDD approach. When the code has fewer bugs, you'll spend less time fixing them than other programming methodologies. TDD produces a higher overall test coverage and, therefore to a better quality of the final product.
So - yes - very much so.
When a tester finds a bug I usually write a unit test for it. When the test succeeds, I know the bug is fixed and it will always be covered again in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With