






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







By: ANOOP RANA Course: BCA 5 Sem
Testing of individual hardware or software units or groups of related units [IEEE 90] A method of testing the correctness of a particular module of source code [Wiki]
Tests Constrain Features Tests Defend Against Other Programmers Testing Is Fun Testing Forces You to Slow Down and Think Testing Makes Development Faster Tests Reduce Fear
Use a unit test framework All classes should be tested Create tests first - Code is added only when a tests breaks Unit tests are released into the code repository along with the code they test. (code without one may not be released) Upon discovering a missing unit test it must be created at that time
pass/fail patterns collection management patterns data driven patterns performance patterns simulation patterns multithreading patterns stress test patterns presentation layer patterns process patterns
Unit Test patterns cover broad aspects of development; not just functional May promote unit testing to become a more formal engineering discipline Helps identify the kind of unit tests to write, and its usefulness. Allows developer to choose how detailed the unit tests need to be