Skip to content

Commit 1246789

Browse files
authored
feat(test): add --groups flag (#51)
1 parent b59696a commit 1246789

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
@@ -73,6 +73,12 @@ export default class Test extends BaseCommand {
7373
@flags.array({ description: 'Filter tests by title' })
7474
public tests: string[]
7575

76+
/**
77+
* Filter by group title
78+
*/
79+
@flags.array({ description: 'Filter tests by group title' })
80+
public groups: string[]
81+
7682
/**
7783
* Customize tests timeout
7884
*/
@@ -118,6 +124,10 @@ export default class Test extends BaseCommand {
118124
filters['--tests'] = this.tests
119125
}
120126

127+
if (this.groups) {
128+
filters['--groups'] = this.groups
129+
}
130+
121131
return filters
122132
}
123133

0 commit comments

Comments
 (0)