Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Use VSTest v2 #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function FindVSTest(pathToVSWhere) {
if (vsTestPath === "") {
core.setFailed("Unable to find VSTest.Console.exe");
}
vsTestPath = path.join(vsTestPath.trimRight(), '\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe');
vsTestPath = path.join(vsTestPath.trimRight(), '\\Common7\\IDE\\Extensions\\TestPlatform\\vstest.console.exe');
var folderForVSTest = path.dirname(vsTestPath);
core.debug(`VSTest = ${vsTestPath}`);
core.debug(`Folder for VSTest ${folderForVSTest}`);
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ async function FindVSTest(pathToVSWhere:string):Promise<string>{
core.setFailed("Unable to find VSTest.Console.exe");
}

vsTestPath = path.join(vsTestPath.trimRight(), '\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe')
vsTestPath = path.join(vsTestPath.trimRight(), '\\Common7\\IDE\\Extensions\\TestPlatform\\vstest.console.exe')

var folderForVSTest = path.dirname(vsTestPath)
core.debug(`VSTest = ${vsTestPath}`);
core.debug(`Folder for VSTest ${folderForVSTest}`);

return folderForVSTest;
}
}