Noeud:Develop the Interface, Noeud « Next »:Look for Realism, Noeud « Previous »:Specify the Testing Goals, Noeud « Up »:Designing a Test Suite
Because unfortunately not all the failures are detected by the test
suite, you might also be interested in equipping the programs with
verbosity/tracing options. Many programs provide a --verbose
option which produces information about critical internal variables, the
various actions that are performed etc. It often helps locating
when the bug was triggered.
No one would ever work with a Boolean compiler: while compilation
succeeded
is all we need, compilation failed
is definitely not
enough information for a programmer to track an error. Test suites are
very similar: we all expect test suite succeeded
, but test
suite failed
, or even test suite failed: test 51 failed
, are not
enough. Your testing scheme should provide accurate information on the
tests that were performed, what was expected, and what was obtained.
If the test suite may be run by users, then you should pay even more attention to providing as much information as needed to understand a failure at distance. For instance, have the test suite wrap all the pertinent information in a log file, and ask for this file.