Skip to content

Commit e474ba3

Browse files
committed
(build) enable macos tests
1 parent 1f37d07 commit e474ba3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build/build/Tasks/Test/UnitTest.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,11 @@ private static void TestProjectForTarget(BuildContext context, FilePath project,
6969
NoBuild = true,
7070
NoRestore = true,
7171
Configuration = context.MsBuildConfiguration,
72+
TestAdapterPath = new DirectoryPath(".")
7273
};
7374

74-
if (!context.IsRunningOnMacOs())
75-
{
76-
settings.TestAdapterPath = new DirectoryPath(".");
77-
var resultsPath = context.MakeAbsolute(testResultsPath.CombineWithFilePath($"{projectName}.results.xml"));
78-
settings.Loggers = new[] { $"junit;LogFilePath={resultsPath}" };
79-
}
75+
var resultsPath = context.MakeAbsolute(testResultsPath.CombineWithFilePath($"{projectName}.results.xml"));
76+
settings.Loggers = new[] { $"junit;LogFilePath={resultsPath}" };
8077

8178
var coverletSettings = new CoverletSettings
8279
{

0 commit comments

Comments
 (0)