Skip to content

Commit c098309

Browse files
authored
Parameterized test results should inherit tags (#929)
Parameterized test results should inherit the tags of their parent. This keeps them visible in the Test Explorer when tests are filtered by tag.
1 parent db0b840 commit c098309

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/TestExplorer/TestRunner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export class TestRunProxy {
107107
// level test item and users can cycle through them with the up/down arrows in the UI.
108108
testClass.location = undefined;
109109

110+
// Results should inherit any tags from the parent.
111+
testClass.tags = parent.tags.map(t => new vscode.TestTag(t.id));
112+
110113
const added = upsertTestItem(this.controller, testClass, parent);
111114

112115
// If we just update leaf nodes the root test controller never realizes that

0 commit comments

Comments
 (0)