diff --git a/build.cake b/build.cake index 412337aa43..3e052e6057 100644 --- a/build.cake +++ b/build.cake @@ -584,13 +584,15 @@ Task("BuildTest") BuildProject(env, projectName, projectFilePath, configuration, "test"); } - foreach (var testProject in buildPlan.TestProjects) - { + var testProject = "OmniSharp.Cake.Tests"; + + // foreach (var testProject in buildPlan.TestProjects) + // { var testProjectName = testProject + ".csproj"; var testProjectFilePath = CombinePaths(env.Folders.Tests, testProject, testProjectName); BuildProject(env, testProjectName, testProjectFilePath, testConfiguration); - } + // } }); /// @@ -609,8 +611,10 @@ Task("Test") try { - foreach (var testProject in buildPlan.TestProjects) - { + var testProject = "OmniSharp.Cake.Tests"; + + // foreach (var testProject in buildPlan.TestProjects) + // { PrintBlankLine(); var instanceFolder = CombinePaths(env.Folders.Bin, testConfiguration, testProject, "net46"); @@ -636,12 +640,18 @@ Task("Test") var runScript = CombinePaths(env.Folders.Mono, "run"); + Environment.SetEnvironmentVariable("MONO_LOG_LEVEL", "debug"); + Environment.SetEnvironmentVariable("MONO_LOG_MASK", "asm,dll"); + // By default, the run script launches OmniSharp. To launch our Mono runtime // with xUnit rather than OmniSharp, we pass '--no-omnisharp' Run(runScript, $"--no-omnisharp \"{xunitInstancePath}\" {arguments}", instanceFolder) .ExceptionOnError($"Test {testProject} failed for net46"); + + Environment.SetEnvironmentVariable("MONO_LOG_LEVEL", null); + Environment.SetEnvironmentVariable("MONO_LOG_MASK", null); } - } + // } } finally {