Create a set of test statistic variables for test procedures, which will accumulate the number of tests (i.e. asserts) and at least the number of failures. The number of failures might be higher than the number of tests due to the fact that a test procedure also catches syntax errors. The variables could be named TESTTOTAL and TESTFAILS (and TESTSUCCESSES, if this is possible).
The variables should be implemented in the Assertion class and will be declared in the first procedure flagged as test. The variables will be resetted in the terminal once the code jumps into a procedure (to allow using the global variables after a procedure). Each procedure shall track the stats variables at the beginning of its execution and calculate the statistics by using this baseline after each executed line. The stats variables memory shall also be attached to the Assertion class.
Change is used in the implementation of the automatic SW test to display the statistics of each test suite. No deviations detected.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r1014]
Diff: