Skip to content

Commit

Permalink
unittest discovery errors not displaying in test explorer (#21726)
Browse files Browse the repository at this point in the history
saw an issue where if discovery failed there was no notice in the test
explorer for unittest. It was due to a different value for the new blank
value for the payload tests. fixes
#21725 and
#21688
  • Loading branch information
eleanorjboyd authored Aug 1, 2023
1 parent a6a8cb1 commit 8f3d60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/testing/testController/common/resultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class PythonResultResolver implements ITestResultResolver {
// remove error node only if no errors exist.
this.testController.items.delete(`DiscoveryError:${workspacePath}`);
}
if (rawTestData.tests) {
if (rawTestData.tests || rawTestData.tests === null) {
// if any tests exist, they should be populated in the test tree, regardless of whether there were errors or not.
// parse and insert test data.

Expand Down

0 comments on commit 8f3d60b

Please sign in to comment.