Docsity

Software Testing Ppt, Assignments of Software Development

Partial preview of the text

Download Software Testing Ppt and more Assignments Software Development in PDF only on Docsity!

UNIT TESTING

By: ANOOP RANA Course: BCA 5 Sem

DEFINITIONS

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]

WHY EVEN BOTHER?

(CONTINUED)

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

EXTREME UNIT TESTING -

PRINCIPLES

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

UNIT TESTING PATTERNS

pass/fail patterns collection management patterns data driven patterns performance patterns simulation patterns multithreading patterns stress test patterns presentation layer patterns process patterns

PATTERN SUMMARY

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

THANK YOU