-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make reporting of code coverage more consistent (#152)
Adjust how code coverage reports are generated and make behavior consistent between local and CI builds - The combined coverage data (Cobertura.xml) will be placed directly in the code coverage output directory - The "Report" directory will always contain a HTML report (no longer a Azure Pipelines specific report when running on Azure Pipelines. - The HTML report as well as the Cobertura.xml is now published as pipeline artifact on both Azure Pipelines and GitHub Actions - The Azure Pipelines-specific HTML report that is shown in the web UI is now generated in a temporary directory (and only when publishing results to Azure Pipelines) Pull-Request: #152
- Loading branch information
Showing
4 changed files
with
151 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Cake.Core; | ||
using Cake.Core.IO; | ||
|
||
namespace Grynwald.SharedBuild.Tools; | ||
|
||
public static class FileAliases | ||
{ | ||
public static void EnsureFileDoesNotExist(this ICakeContext context, FilePath path) | ||
{ | ||
var file = context.FileSystem.GetFile(path); | ||
if (file.Exists) | ||
{ | ||
file.Delete(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters