Not my exact point, but pictures about unit testing are hard to find! (Image from Reportnet) |
This time however, I spotted what looked like incorrect code and there was already a unit test for the class! I was able to write a short test that verified the bug (i.e. wrote a failing test), fixed it and reran the test successfully! All this in less time it would take to run mvn verify (including deployment to WebLogic)!
I'll be a bit less loathe to write tests in the future now, since I actually SAW that "it's better in the future" thing they say about testing.
No comments:
Post a Comment