diff --git a/build/BuildRelease.bat b/build/BuildRelease.bat index cb7275cc..d95033e2 100644 --- a/build/BuildRelease.bat +++ b/build/BuildRelease.bat @@ -4,8 +4,10 @@ cd %~dp0../src dotnet build System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true +pwsh -c "Get-ChildItem -Recurse | Where-Object {$_.Name -eq 'TestResults'} | Remove-Item -Force -Recurse" dotnet test System.Waf/System.Waf.sln -c Release --no-build --collect "Code Coverage" +mkdir ..\out\CodeCoverageReport dotnet-coverage merge --output ../out/CodeCoverageReport/System.Waf.cobertura.xml --output-format cobertura "./**/TestResults/**/*.coverage" reportgenerator -reports:../out/CodeCoverageReport/System.Waf.cobertura.xml -targetdir:../out/CodeCoverageReport -reporttypes:"MarkdownSummaryGithub" \ No newline at end of file diff --git a/src/Samples.UITest/InformationManager.Test/Tests/EmailTest.cs b/src/Samples.UITest/InformationManager.Test/Tests/EmailTest.cs index e5ba28b8..bcb09d30 100644 --- a/src/Samples.UITest/InformationManager.Test/Tests/EmailTest.cs +++ b/src/Samples.UITest/InformationManager.Test/Tests/EmailTest.cs @@ -4,6 +4,7 @@ using Xunit.Abstractions; namespace UITest.InformationManager.Tests; + public class EmailTest(ITestOutputHelper log) : UITest(log) { [Fact]