Skip to content

Commit

Permalink
GitTools#2325 - enable macos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed May 27, 2022
1 parent 8d88cfd commit 090f308
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build/build/Tasks/Test/UnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,11 @@ private static void TestProjectForTarget(BuildContext context, FilePath project,
NoBuild = true,
NoRestore = true,
Configuration = context.MsBuildConfiguration,
TestAdapterPath = new DirectoryPath(".")
};

if (!context.IsRunningOnMacOs())
{
settings.TestAdapterPath = new DirectoryPath(".");
var resultsPath = context.MakeAbsolute(testResultsPath.CombineWithFilePath($"{projectName}.results.xml"));
settings.Loggers = new[] { $"junit;LogFilePath={resultsPath}" };
}
var resultsPath = context.MakeAbsolute(testResultsPath.CombineWithFilePath($"{projectName}.results.xml"));
settings.Loggers = new[] { $"junit;LogFilePath={resultsPath}" };

var coverletSettings = new CoverletSettings
{
Expand Down

0 comments on commit 090f308

Please sign in to comment.