File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4040 <ItemGroup >
4141 <CoverletReport Include =" $(VSTestResultsDirectory)/*/coverage.cobertura.xml" />
4242 </ItemGroup >
43- <ReportGenerator ReportFiles =" @(CoverletReport)" TargetDirectory =" $(CoverageReportDirectory)" />
43+ <ReportGenerator ReportFiles =" @(CoverletReport)" TargetDirectory =" $(CoverageReportDirectory)" ReportTypes = " Html;TextSummary " />
4444 </Target >
4545
4646 <!-- Because of https://github.com/microsoft/vstest/issues/2378 -->
5555 <RemoveDir Directories =" @(CoverletReportParentDirectory)" />
5656 </Target >
5757
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+
5866 <Target Name =" OpenHtmlCoverageReport" AfterTargets =" MoveCoverletReport" Condition =" $(ContinuousIntegrationBuild) != 'true'" >
5967 <PropertyGroup >
6068 <OpenCommand Condition =" $([MSBuild]::IsOSPlatform('Linux'))" >xdg-open</OpenCommand >
You can’t perform that action at this time.
0 commit comments