Appending vs. Overriding of Counter Data

When a datafile is reused in new tests, the counter data written out is added up to the existing counter data if the source file was not changed.

The decision is made separately for each source file. In the datafile, three scenarios are possible:

  1. It does not contain coverage data for the source file. In this case, a new counter data block is written to the datafile.
  2. It does contain coverage data, but from different version of the source file. In this case, the counters in the datafile are overwritten.
  3. It does contain coverage data from the same version of the source file. In this case, the counters are added up.