Support Concurrent Cypress E2E Tasks with Auto Port Detection in Nx #30394
RichardLindhout
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current Behavior
Running multiple Cypress E2E tasks in Nx (e.g.,
nx run-many -t e2e
) fails due to port collisions on the hardcodedbaseUrl
(e.g.,http://localhost:4200
).Expected Behavior
Multiple Cypress tasks should run concurrently without port conflicts.
What have we tried
We already have dynamic ports per app but we can't run E2E on different PR's and commits simultaneously.
Proposed Solution
Add an
'auto'
port option to@nx/cypress
’snxE2EPreset
. Nx would:@nx/web
’sauto
mode).baseUrl
for Cypress tasks. E.g. 'auto' baseUrl.Related issue: #22109
cc: FrozenPandaz (because you proposed something similar)
Beta Was this translation helpful? Give feedback.
All reactions