When I look back at every time I have not written a unit test first. It was either because I didn’t really know how to do it effectively, or how to do it at all.
Of course, this doesn’t mean it can’t be done, just that I hadn’t learned how to… yet.
This session is about how I’ve learned to test many things I used to think were impossible. Usually in a just a few lines of code.
Want to test that a gui looks right? No problem.
That the Html and CSS render correctly. Piece of cake.
Is the noise reduction function making the audio sound better? I can do that.
That database query from the ORM is working? Sure. Even if the database is down. Yep!
This is going to be a compare and contrast type session. We will look at lot’s of examples of standard unit tests vs the same test using an ApprovalTesting framework like: TextTests, PealFish, Depicted (dpxdt) or ApprovalTests.