Skip to content

Commit 6403131

Browse files
committed
Add an optional e2e_test_filter to "test-packaged-app" function
1 parent 551cea8 commit 6403131

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.evergreen/functions.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ functions:
606606
DEBUG: ${debug|}
607607
MONGODB_VERSION: ${mongodb_version|}
608608
MONGODB_RUNNER_VERSION: ${mongodb_version|}
609-
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups}
610-
COMPASS_E2E_TEST_GROUP: ${e2e_test_group}
609+
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups|1}
610+
COMPASS_E2E_TEST_GROUP: ${e2e_test_group|1}
611611
ATLAS_LOCAL_VERSION: latest
612612
script: |
613613
set -e
@@ -638,8 +638,9 @@ functions:
638638
DEBUG: ${debug|}
639639
MONGODB_VERSION: ${mongodb_version|}
640640
MONGODB_RUNNER_VERSION: ${mongodb_version|}
641-
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups}
642-
COMPASS_E2E_TEST_GROUP: ${e2e_test_group}
641+
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups|1}
642+
COMPASS_E2E_TEST_GROUP: ${e2e_test_group|1}
643+
COMPASS_E2E_TEST_FILTER: ${e2e_test_filter|}
643644
script: |
644645
set -e
645646
# Load environment variables
@@ -720,8 +721,8 @@ functions:
720721
MONGODB_VERSION: ${mongodb_version|}
721722
MONGODB_RUNNER_VERSION: ${mongodb_version|}
722723
COMPASS_E2E_BROWSER_NAME: ${browser_name}
723-
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups}
724-
COMPASS_E2E_TEST_GROUP: ${e2e_test_group}
724+
COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups|1}
725+
COMPASS_E2E_TEST_GROUP: ${e2e_test_group|1}
725726
script: |
726727
set -e
727728
# Load environment variables

packages/compass-e2e-tests/helpers/test-runner-context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function buildCommonArgs(yargs: Argv) {
3535
type: 'string',
3636
description: 'Filter the spec files picked up for testing',
3737
default: '*',
38+
coerce: (arg) => (arg === '' ? '*' : arg),
3839
})
3940
.option('webdriver-waitfor-timeout', {
4041
type: 'number',

0 commit comments

Comments
 (0)