Mail Archives: djgpp/2000/11/30/03:04:42
On Wed, 29 Nov 2000, anthony wrote:
> does anyone know how to white box test?
AFAIK, that's when you study the sources of a program, and then design a 
test case for each of the possible instance of control flow that it could 
take.
For example, for each if-then-else clause, you need a test case that 
satisfies the condition and exercises the `then' block, and another test 
case which exercises the `else' block.
There are tools which report source coverage when you run a test case: 
they tell you which source lines were executed during the run and which 
weren't.  After running tests, you are supposed to demonstrate that 
you've covered a certain percentage of the source lines, as close to 100% 
as possible.
- Raw text -