Skip to content

Commit 8f3d60b

Browse files
authored
unittest discovery errors not displaying in test explorer (#21726)
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
1 parent a6a8cb1 commit 8f3d60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/testing/testController/common/resultResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class PythonResultResolver implements ITestResultResolver {
6868
// remove error node only if no errors exist.
6969
this.testController.items.delete(`DiscoveryError:${workspacePath}`);
7070
}
71-
if (rawTestData.tests) {
71+
if (rawTestData.tests || rawTestData.tests === null) {
7272
// if any tests exist, they should be populated in the test tree, regardless of whether there were errors or not.
7373
// parse and insert test data.
7474

0 commit comments

Comments
 (0)