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

Commit

Permalink
Modified to select the VSTest.Console in the TestPlatform folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon committed Nov 23, 2019
1 parent 3394a38 commit e5c6baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function FindVSTest(pathToVSWhere) {
};
// Run VSWhere to tell us where VSTest.Console is
var vsWhereExe = path.join(pathToVSWhere, "vswhere.exe");
yield exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\vstest.console.exe'], options);
yield exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\TestPlatform\\vstest.console.exe'], options);
if (vsTestPath === "") {
core.setFailed("Unable to find VSTest.Console.exe");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function FindVSTest(pathToVSWhere:string):Promise<string>{

// Run VSWhere to tell us where VSTest.Console is
var vsWhereExe = path.join(pathToVSWhere, "vswhere.exe");
await exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\vstest.console.exe'], options);
await exec.exec(vsWhereExe, ['-latest', '-requires', 'Microsoft.VisualStudio.Workload.ManagedDesktop', '-find', '**\\TestPlatform\\vstest.console.exe'], options);

if(vsTestPath === ""){
core.setFailed("Unable to find VSTest.Console.exe");
Expand Down

0 comments on commit e5c6baa

Please sign in to comment.