8000 fix issue with test results not found by gcampbell-msft · Pull Request #3823 · microsoft/vscode-cmake-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix issue with test results not found #3823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 14, 2024
Merged
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
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
Loading
0