-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(testing): distribute cypress tests for ci #20188
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 21f429e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
2f791a3
to
9d3bf06
Compare
ab73d59
to
827fcc8
Compare
827fcc8
to
d002890
Compare
d002890
to
352f160
Compare
packages/nx/src/project-graph/utils/retrieve-workspace-files.ts
Outdated
Show resolved
Hide resolved
9ed06e7
to
21f429e
Compare
@FrozenPandaz do you plan to do the same for playwright as it was done here https://github.com/nrwl/tic-tac-toe-playwright/tree/e2e-sharding ? I am curious because I wrote about it and I want to stay up to date ;) https://jgelin.medium.com/nx-distribute-e2e-task-execution-for-playwright-and-cypress-e3aa8811842a |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Cypress projects are run as a suite in CI.
Expected Behavior
Cypress tasks are configured for each each spec file and then linked by a parent task. The task to run is the parent task, called

e2e-ci
by default.What this allows Nx to do is run these tasks in parallel distributed across multiple machines via DTE.
Ultimately, this means that cypress suites are run across multiple machines in less time AND each spec file is cached independently.
This PR also contains other changes too
Cypress changes
Devkit
Related Issue(s)
Fixes #