Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Effective

Testing

Why do we test?

Outline

Effectiveness of Testing

MethodDefect-Detection Rates
Unit test30%
Component test30%
Integration test35%
Regression test25%
Informal design reviews35%
Formal design inspections55%
Formal code inspections60%
Prototyping65%
<= 35%
Better

Why is testing not efficient?

Problems with Developer Testing

Statement Coverage vs Branch Coverage

Example:

statement1;
if (predicate) {
  statement2;
}
statement3

Effective Testing

Test as Early as Possible

http://www.cgl.ucsf.edu/Outreach/bmi280/slides/swc/lec/img /dev01/boehm_curve.png

Test Often and Automatically

Testing the Test

Take-home Message