From a0914f095f0b26566644fa2f27cf2db3573b253d Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 5 May 2022 15:09:31 +0200 Subject: [PATCH] feat: filter tests by title --- commands/Test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/commands/Test.ts b/commands/Test.ts index 3aa6e951..723a7b53 100644 --- a/commands/Test.ts +++ b/commands/Test.ts @@ -67,6 +67,12 @@ export default class Test extends BaseCommand { @flags.array({ description: 'Filter tests by ignoring tags' }) public ignoreTags: string[] + /** + * Filter by test title + */ + @flags.array({ description: 'Filter tests by title' }) + public tests: string[] + /** * Customize tests timeout */ @@ -108,6 +114,10 @@ export default class Test extends BaseCommand { filters['--ignore-tags'] = this.ignoreTags } + if (this.tests) { + filters['--tests'] = this.tests + } + return filters }