Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit ee42692

Browse files
committed
Add dotcover warning message when there's no File elements
Signed-off-by: Luís Ferreira <[email protected]>
1 parent 92f18f6 commit ee42692

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Parsing/Processors/DotCoverProcessor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public Report Parse(string file)
2626
modules.Elements("File"))
2727
};
2828

29+
if (report.FilesList.Count == 0) {
30+
Console.WriteLine ("Warning: Got a report without File elements. Consider report dotCover with --ReportType=DetailedXML");
31+
}
32+
2933
foreach (var module in namespaces)
3034
{
3135
var classes = module.Elements("Type");

0 commit comments

Comments
 (0)