Skip to content

Commit 09d2b81

Browse files
authored
feat: filter tests by title (#46)
1 parent 9c4f389 commit 09d2b81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

commands/Test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ export default class Test extends BaseCommand {
6767
@flags.array({ description: 'Filter tests by ignoring tags' })
6868
public ignoreTags: string[]
6969

70+
/**
71+
* Filter by test title
72+
*/
73+
@flags.array({ description: 'Filter tests by title' })
74+
public tests: string[]
75+
7076
/**
7177
* Customize tests timeout
7278
*/
@@ -108,6 +114,10 @@ export default class Test extends BaseCommand {
108114
filters['--ignore-tags'] = this.ignoreTags
109115
}
110116

117+
if (this.tests) {
118+
filters['--tests'] = this.tests
119+
}
120+
111121
return filters
112122
}
113123

0 commit comments

Comments
 (0)