-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[internal] watch+reload on file change for e2e tests with --no-exit #6873
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
Conversation
|
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
flotwig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add some documentation in the README for how to use this?
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
chrisbreiding
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this out locally and discovered something odd. If you run certain tests, the process will exit even with the --no-exit flag. The one I tried out was 1_async_timeouts_spec.coffee. However, 1_base_url_spec.coffee does the right thing and doesn't exit.
As far as I can tell, the difference is that 1_base_url_spec.coffee uses e2e.it(...), while 1_async_timeouts_spec.coffee uses the default mocha it(...) and e2e.exec(...).
I would guess this has something to do with upgrading mocha and now passing --exit to it.
|
@chrisbreiding should be fixed in 1505ecf |
chrisbreiding
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now when there's a spec using e2e.exec(...) with the browser flag, the browser doesn't open. For example I ran:
yarn test-e2e 1_blacklist_hosts --no-exit --browser chromeand it doesn't exit, but it must have run in electron, because Chrome doesn't open. I rolled back a few commits and verified this didn't used to be the case.
|
had to keep the npmInstall step as part of helpers/e2e because cypress cannot find hoisted mocha reporters, so the node_modules must be present in the |
brian-mann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to keep the npmInstall step as part of helpers/e2e because cypress cannot find hoisted mocha reporters, so the node_modules must be present in the
.projectsdirectory
We can pass an absolute path to the reporter configuration to find the module. Update this PR so we can remove the npmInstall phase again.
tasks:
User facing changelog
N/A
Additional details
How has the user experience changed?