Interrogative testing of Unit tests.
The following are interesting questions that can be asked when writing unit tests.How: How to test the code?
Write test first before the actual code
What: What can go wrong?
Understanding the alternate routes to your code.
When: When would it fail?
The type of exceptions it would throw. Cross check results by other means.
Where: Where are the boundaries?
Limitations of the code or data. Performance characteristics within the bounds.
Why: Why perform the test?
The test should be significant and not frivolous.
Who: Who would know if it fails?
Run local tests with each compile. Run the test before checking in code.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home