Skip to content

Commit

Permalink
Fix testing result display for solutions
Browse files Browse the repository at this point in the history
Several projects in solution can overwrite each other results
  • Loading branch information
deitry committed Aug 30, 2022
1 parent b62f3e2 commit 5462ada
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/testCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,8 @@ export class TestCommands implements Disposable {

private runTestCommandForSpecificDirectory(testProjectPath: string, testName: string, isSingleTest: boolean, index: number, debug?: boolean): Promise<any[]> {

const trxTestName = index + ".trx";

return new Promise((resolve, reject) => {
const testResultFile = path.join(this.testResultsFolder, trxTestName);
let command = `dotnet test${Utility.additionalArgumentsOption} --no-build --logger \"trx;LogFileName=${testResultFile}\"`;
let command = `dotnet test${Utility.additionalArgumentsOption} --no-build --logger trx -r ${this.testResultsFolder}`;

const isDirectory = fs.lstatSync(testProjectPath).isDirectory();
if (!isDirectory)
Expand Down

0 comments on commit 5462ada

Please sign in to comment.