Soumis par admin le mer, 2013/03/27 - 11:06.
Do you want to write unit tests but don’t know where to begin? Don’t panic and follow these steps to ease into the testing business. Practice testing often to achieve best results.
Tip: try to test the smallest unit possible, usually a function, rather than a combination of functions. Testing combinations is called integration testing, which I will cover in subsequent posts.
Here are a few easy to spot opportunities for writing unit tests.
When you encounter bugs.