Skip to content

Commit d4880d7

Browse files
author
Mate Pek
committed
master: Catch2 tag improvement
1 parent 47fc1e0 commit d4880d7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/framework/Catch2Test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,21 @@ export class Catch2Test extends AbstractTest {
5050
Catch2Test.isSkipped(tags, testNameAsId),
5151
forceIgnoreError,
5252
calcDescription,
53-
tags,
53+
tags.filter(v => v !== '.' && v !== 'hide' && v !== '!hide'), // special tags to mark tests as skipped
5454
SharedTestTags.catch2,
5555
);
5656
}
5757

5858
update2(file: string | undefined, line: string | undefined, tags: string[], description: string | undefined): void {
5959
const calcDescription = AbstractTest.calcDescription(tags, undefined, undefined, description);
60-
super.update(this.label, file, line, Catch2Test.isSkipped(tags, this.id), calcDescription, tags);
60+
super.update(
61+
this.label,
62+
file,
63+
line,
64+
Catch2Test.isSkipped(tags, this.id),
65+
calcDescription,
66+
tags.filter(v => v !== '.' && v !== 'hide' && v !== '!hide'), // special tags to mark tests as skipped
67+
);
6168
}
6269

6370
private static isSkipped(tags: string[], testNameAsId: string): boolean {

0 commit comments

Comments
 (0)