Skip to content

Commit a281202

Browse files
committed
(vsix) add unit tests support for Vsix, code review changes
1 parent c55a005 commit a281202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/pack.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Task("Test")
6060

6161
if (!parameters.IsRunningOnMacOS) {
6262
settings.TestAdapterPath = new DirectoryPath(".");
63-
var resultsPath = MakeAbsolute(new FilePath($"{testResultsPath}/{projectName}.results.xml"));
63+
var resultsPath = MakeAbsolute(testResultsPath.CombineWithFilePath($"{projectName}.results.xml"));
6464
settings.Logger = $"nunit;LogFilePath={resultsPath}";
6565
}
6666

@@ -91,7 +91,7 @@ Task("Test")
9191

9292
var workDir = "./src/GitVersionVsixTask";
9393
var npmSettings = new NpmRunScriptSettings { WorkingDirectory = workDir, LogLevel = NpmLogLevel.Silent, ScriptName = "test" };
94-
var vsixResultsPath = MakeAbsolute(new FilePath($"{testResultsPath}/vsix.results.xml"));
94+
var vsixResultsPath = MakeAbsolute(testResultsPath.CombineWithFilePath("vsix.results.xml"));
9595
npmSettings.Arguments.Add($"--reporter-options mochaFile={vsixResultsPath}");
9696
NpmRunScript(npmSettings);
9797
})

0 commit comments

Comments
 (0)