Skip to content

Commit 0657545

Browse files
committed
Merges by fileName (dll's name) instead of the complete path.
So the same dlls are merged regardless of which test project references them, when having multiple test projects.
1 parent 4fa41cf commit 0657545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.core/CoverageResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal void Merge(Modules modules)
4444
{
4545
foreach (var module in modules)
4646
{
47-
if (!this.Modules.ContainsKey(module.Key))
47+
if (!this.Modules.Keys.Select(Path.GetFileName).Contains(Path.GetFileName(module.Key)))
4848
{
4949
this.Modules.Add(module.Key, module.Value);
5050
}

0 commit comments

Comments
 (0)