Skip to content

Commit e2f8ebe

Browse files
committed
fix opencover reportgenerator error
1 parent b0adf77 commit e2f8ebe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coverlet.core/Reporters/OpenCoverReporter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public string Report(CoverageResult result)
121121
branchPoint.Add(new XAttribute("vc", lines.Value.Hits.ToString()));
122122
branchPoint.Add(new XAttribute("upsid", lines.Key.ToString()));
123123
branchPoint.Add(new XAttribute("ordinal", kBr.ToString()));
124+
branchPoint.Add(new XAttribute("path", ""));
125+
branchPoint.Add(new XAttribute("offset", kBr.ToString()));
126+
branchPoint.Add(new XAttribute("offsetend", kBr.ToString()));
124127
branchPoint.Add(new XAttribute("sl", lines.Key.ToString()));
125128
branchPoint.Add(new XAttribute("fileid", i.ToString()));
126129
branchPoints.Add(branchPoint);

0 commit comments

Comments
 (0)