Skip to content

Commit

Permalink
fix issue with test results not found (#3823)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft authored Jun 14, 2024
1 parent b368e06 commit 1b69c4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Features:

Bug Fixes:

- Fix issue with "Test Results Not Found" when `cmake.ctest.allowParallelJobs` is disabled. [#3798](https://github.com/microsoft/vscode-cmake-tools/issues/3798)
- Update localized strings for Project Status UI and quick pick dropdowns. [#3803](https://github.com/microsoft/vscode-cmake-tools/issues/3803), [#3802](https://github.com/microsoft/vscode-cmake-tools/issues/3802)

## 1.18.42
Expand Down
8 changes: 6 additions & 2 deletions src/ctest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,12 @@ export class CTestDriver implements vscode.Disposable {
const testResults = await this.runCTestImpl(driver.driver, driver.ctestPath, _ctestArgs, customizedTask, consumer);

if (testResults) {
for (let i = 0; i < testResults.site.testing.test.length; i++) {
returnCode = this.testResultsAnalysis(testResults.site.testing.test[i], test, returnCode, run);
const testResult = testResults.site.testing.test.find(t => t.name === test.id);
if (testResult) {
returnCode = this.testResultsAnalysis(testResult, test, returnCode, run);
} else {
this.ctestErrored(test, run, { message: localize('test.results.not.found', 'Test results not found.') });
returnCode = -1;
}
}
}
Expand Down

0 comments on commit 1b69c4f

Please sign in to comment.