Skip to content

Subsequent runs produce different results #20

@KiraResari

Description

@KiraResari

I ran Delphi Code Coverage multiple times on the same code base, and got different results for the coverage even though I didn't change anything about the code in between.

The Command I used to run this was: CodeCoverage -e PBeratungsapp_Tests.exe -m PBeratungsapp_Tests.map -uf test_results/script/dcov_units.lst -spf test_results/script/dcov_paths.lst -od test_results -lt -xml -html -v -ife

The first day I got this result every time:

+-----------+-----------+-----------+
|   Lines   |  Covered  | Covered % |
+-----------+-----------+-----------+
|      6991 |      3463 |      49 % |
+-----------+-----------+-----------+

Today, the first time I ran it, I got this result:

  +-----------+-----------+-----------+
  |   Lines   |  Covered  | Covered % |
  +-----------+-----------+-----------+
  |      6991 |       426 |       6 % |
  +-----------+-----------+-----------+

I then rebuilt the test project (even though nothing about the code had changed), and then I got this result:

  +-----------+-----------+-----------+
  |   Lines   |  Covered  | Covered % |
  +-----------+-----------+-----------+
  |      6991 |      5161 |      73 % |
  +-----------+-----------+-----------+

These fluctuations strike me as odd. Any idea as to why this might be happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions