Skip to content
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

No watch mode #63

Closed
tvanc opened this issue Sep 20, 2021 · 6 comments
Closed

No watch mode #63

tvanc opened this issue Sep 20, 2021 · 6 comments

Comments

@tvanc
Copy link

tvanc commented Sep 20, 2021

One thing I enjoy about using Cypress via yarn cypress open is that the tests re-run automatically when the source or test file changes.

With Jest I can modify my run configuration to pass --watch, which does the same.

There doesn't seem to be any way using this plugin to enable a watch mode to cause Cypress to re-run tests automatically when test or source files change.

Thank you for the plugin. I just started using the pro version today.

@mbolotov
Copy link
Owner

Hi @tvanc!
how do you start tests via plugin? do you use the interactive mode?
image

This mode will run Cypress using the open command as you do when running it via yarn.

@tvanc
Copy link
Author

tvanc commented Sep 21, 2021

Selecting Interactive mode does mimic the open command as you say. I would love to be able to have a watch mode that works with Headed or Headless. It can be really handy to debug using the JetBrains debug panel instead of the browser dev tools. Right now if I want to debug with a watch mode, I can only use the browser dev tools.

Some of my tests are unit tests that don't necessarily need a complete browser context. I could use Jest for those if I need to write a lot more of them, and Cypress with this plugin for the ones where jsdom is insufficient.
That would get me 80% of the way towards the testing experience I'm looking for.

@mbolotov
Copy link
Owner

Do you mean that debug via IntelliJ is not working in Interactive mode?
Let me double check this, but it should work and I saw it working some time ago.
As for the watch mode within run mode, it's a Cypress limitation itself.

@tvanc
Copy link
Author

tvanc commented Sep 28, 2021

Thanks for the info. I didn't know about the limitation with watch mode within run mode in Cypress.

I just tested and I wasn't able to debug via intellij in interactive mode. In interactive mode, I have to debug using the Chrome dev tools.

@mbolotov
Copy link
Owner

If you are still not able to debug via intellij in interactive mode, please provide more information to reproduce the problem as I see it working.

@tvanc
Copy link
Author

tvanc commented Sep 30, 2021

I just had it happen one more time... but not again after I restarted the script in debug mode and reset the breakpoints.

That's good to me 😁

Thank you for the plugin!

@tvanc tvanc closed this as completed Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants