Merging snapshots of the same code

Completed

There are at least two ways to make code coverage snapshots:

1. Snapshot for integration smoke tests (when the dotCover looks into how the application itself is running).

2. Snapshot for the unit tests.

 

We want to merge these snapshots and look at the overall code coverage.

If I understand the command merge correctly, it doesn't work on the different snapshots of the same code base.

Is it possible to somehow merge them together or there is no way about it?

0
3 comments

Hi Egor,

"Merge" command should definitely fit your needs. Do you have any problem with the resulting snapshot?

0

Hi Fedor,

When I specify the 2 snapshots I want to merge:

<Source>Snapshot1.dcvr</Source>
<Source>Snapshot2.dcvr</Source>

the resulting snapshot

<Output>MergedSnapshot.dcvr</Output>

is different depending on the specified order of the source snapshots.

---------

More precisely, the following 2 configuration files produce different snapshots:

<MergeParams>
<Source>Snapshot1.dcvr</Source>
<Source>Snapshot2.dcvr</Source>
<Output>MergedSnapshot1.dcvr</Output>
</MergeParams>

<MergeParams>
<Source>Snapshot2.dcvr</Source>
<Source>Snapshot1.dcvr</Source>
<Output>MergedSnapshot2.dcvr</Output>
</MergeParams>

 

Probably, I am doing something wrong. I don't want to take your time on the things that I may figure our myself, so now I will be researching what's happening more carefully. If I am stuck for a long time, I'll send you my snapshots, configuration and log files.

0

Hi Egor,

dotCover merge is additive if all snapshots are taken on the same assemblies. If metadata differs, dotCover uses the latest one as main (last snapshot in the source list). If the same function is present in both snapshots but has different number of statements, the first occurrence will be considered obsolete and will be ignored.
Please check assemblies in both cases. Debug/Release mode also makes the difference.

 

0

Please sign in to leave a comment.