-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add System Tests for Nx #26045
Comments
Hey team! Please add your planning poker estimate with Zenhub @astone123 @marktnoonan @mike-plummer @warrensplayer @jordanpowell88 |
Have we established that is feasible or do we need to do a spike and confirm? I recall some discussion about the way that NX wraps the Cypress binary not necessarily being easy to system test but I don't remember the details. @jordanpowell88 what do you think? |
Yeah Nx uses the |
We've decided to spent max 1 day to see if there's any unknowns before doing the entire thing. |
WIP - I started on it. https://github.com/cypress-io/cypress/pull/new/issue-26045 |
FYI, we can add all of our projects in one nx monorepo. Ie: Angular, React, Vue, etc Also the difficult part is actually executing the tests. Let me know if you need any additional context |
Ran into some issues, Nx expects a real binary, not a symlinked one, not sure why I can't just symlink like other tests. I'll try write a binary-system test, but I'll be doing this later on - got a few other higher priority issues to do first. |
@lmiller1990 Nx just runs the node apis from cypress is there a way we could change the Cypress executor to make it easier to work with the simlinked packages? |
There might be - the next thing I'm going to try is writing what we are calling "binary tests" that run against a real, built version of the Cypress binary. No symlinks or anything - it's the real deal. That should avoid this problem. The tests run quite a bit slower, but it's also more production like. Those tests are in this directory, for reference: https://github.com/cypress-io/cypress/blob/develop/system-tests/test-binary/node_versions_spec.ts If this doesn't work out, I'll look more into what we can do in Cypress and/or the Nx plugin to facilitate this. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
What would you like?
Add a new Nx workspace to
system-tests/nx-monorepo
and createangular
,react-vite
andreact-webpack
projects that use CT (we can add more in the future). This will also generateangular-e2e
,react-vite-e2e
andreact-webpack-e2e
applications as well for E2E testing. Then we need a way to configuresystem-tests
to run the appropriate tests for each project:nx run react-vite:component-test
for CT appnx e2e react-webpack-e2e
for E2E appsWhy is this needed?
Nx is a 1st class adopter of both Cypress E2E & CT. Currently we do not have any system-tests setup to assure that changes to Cypress do not break Nx. The
@nrwl/cypress
package has ~900K weekly downloads on npm and represents a large number of users. Addingsystem-tests
around Nx can help mitigate any breaking changes for Nx and our users.Other
No response
The text was updated successfully, but these errors were encountered: