File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 40
40
<ItemGroup >
41
41
<CoverletReport Include =" $(VSTestResultsDirectory)/*/coverage.cobertura.xml" />
42
42
</ItemGroup >
43
- <ReportGenerator ReportFiles =" @(CoverletReport)" TargetDirectory =" $(CoverageReportDirectory)" />
43
+ <ReportGenerator ReportFiles =" @(CoverletReport)" TargetDirectory =" $(CoverageReportDirectory)" ReportTypes = " Html;TextSummary " />
44
44
</Target >
45
45
46
46
<!-- Because of https://github.com/microsoft/vstest/issues/2378 -->
55
55
<RemoveDir Directories =" @(CoverletReportParentDirectory)" />
56
56
</Target >
57
57
58
+ <Target Name =" DisplayCoverageSummary" AfterTargets =" MoveCoverletReport" >
59
+ <PropertyGroup >
60
+ <CatCommand Condition =" !$([MSBuild]::IsOSPlatform('Windows'))" >cat</CatCommand >
61
+ <CatCommand Condition =" $([MSBuild]::IsOSPlatform('Windows'))" >type</CatCommand >
62
+ </PropertyGroup >
63
+ <Exec WorkingDirectory =" $(CoverageReportDirectory)" Command =" $(CatCommand) Summary.txt" />
64
+ </Target >
65
+
58
66
<Target Name =" OpenHtmlCoverageReport" AfterTargets =" MoveCoverletReport" Condition =" $(ContinuousIntegrationBuild) != 'true'" >
59
67
<PropertyGroup >
60
68
<OpenCommand Condition =" $([MSBuild]::IsOSPlatform('Linux'))" >xdg-open</OpenCommand >
You can’t perform that action at this time.
0 commit comments