March 2018
Intermediate to advanced
208 pages
4h 52m
English
You can’t have a sophisticated piece of software without testing code. Sometimes (read: quite often), you’ll write as much or even more code for testing than you will for implementing the actual functionality. You might even try test-driven development—writing tests before you write the actual source code that’s to be tested, and making the tests drive the design of your program. We all know: tests are crucial! That’s why you have to make sure that your test suite is well designed and up to the highest standard.
It’s important that your tests are concise and to the point. Whenever one of them fails, the code should give you a very clear indication of where to search for the error. Most of the comparisons in this chapter ...