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 Dec 12, 2022
1 parent 576f15d commit 9078c99
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 9078c99

Please sign in to comment.