Skip to content

Commit

Permalink
Updated Build Scripts to support publishing Test Results
Browse files Browse the repository at this point in the history
  • Loading branch information
ravensorb committed Jan 7, 2020
1 parent 9257053 commit 09f3216
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ Task("UnitTest")
.IsDependentOn("Build")
.Does(() =>
{
if (!DirectoryExists(settings.Test.ResultsPath))
{
CreateDirectory(settings.Test.ResultsPath);
}
switch (settings.Test.Framework)
{
case TestFrameworkTypes.DotNetCore:
Expand Down Expand Up @@ -222,6 +228,9 @@ Task("UnitTest-DotNetCore")
var testSettings = new DotNetCoreTestSettings()
{
Configuration = settings.Configuration,
Logger = "trx",
ResultsDirectory = settings.Test.ResultsPath,
//VSTestReportPath = settings.Test.ResultsPath,
NoBuild = true
};
Expand Down

0 comments on commit 09f3216

Please sign in to comment.