Skip to content

Commit

Permalink
master: Catch2 tag improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Mate Pek committed Jan 9, 2022
1 parent 47fc1e0 commit d4880d7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/framework/Catch2Test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,21 @@ export class Catch2Test extends AbstractTest {
Catch2Test.isSkipped(tags, testNameAsId),
forceIgnoreError,
calcDescription,
tags,
tags.filter(v => v !== '.' && v !== 'hide' && v !== '!hide'), // special tags to mark tests as skipped
SharedTestTags.catch2,
);
}

update2(file: string | undefined, line: string | undefined, tags: string[], description: string | undefined): void {
const calcDescription = AbstractTest.calcDescription(tags, undefined, undefined, description);
super.update(this.label, file, line, Catch2Test.isSkipped(tags, this.id), calcDescription, tags);
super.update(
this.label,
file,
line,
Catch2Test.isSkipped(tags, this.id),
calcDescription,
tags.filter(v => v !== '.' && v !== 'hide' && v !== '!hide'), // special tags to mark tests as skipped
);
}

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

0 comments on commit d4880d7

Please sign in to comment.