Skip to content

Commit 43a556b

Browse files
make each test group run specific test
1 parent b776377 commit 43a556b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/e2e-testing.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ jobs:
6161
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }}
6262
MONGODB_ATLAS_BASE_URL: https://cloud-dev.mongodb.com/
6363
MONGODB_ATLAS_SECRET_PROFILE: cfn-cloud-dev-github-action
64+
# run idividual test allowing for parallel execution. Due to usage of t.Setenv() in test code, t.Parallel() is not possible
6465
run: |
6566
cd cfn-resources/test/e2e/cluster
66-
go test -timeout 90m -v cluster_test.go
67+
go test -timeout 90m -v -run '^TestClusterCFN$' .
6768
6869
cluster-pause:
6970
needs: change-detection
@@ -92,9 +93,10 @@ jobs:
9293
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }}
9394
MONGODB_ATLAS_BASE_URL: https://cloud-dev.mongodb.com/
9495
MONGODB_ATLAS_SECRET_PROFILE: cfn-cloud-dev-github-action
96+
# run idividual test allowing for parallel execution. Due to usage of t.Setenv() in test code, t.Parallel() is not possible
9597
run: |
9698
cd cfn-resources/test/e2e/cluster
97-
go test -timeout 90m -v cluster_pause_test.go
99+
go test -timeout 90m -v -run '^TestClusterPauseCFN$' .
98100
99101

100102
flex-cluster:

0 commit comments

Comments
 (0)