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

Joining efforts #1

Open
DanielMSchmidt opened this issue Mar 8, 2018 · 2 comments
Open

Joining efforts #1

DanielMSchmidt opened this issue Mar 8, 2018 · 2 comments

Comments

@DanielMSchmidt
Copy link

For earlier discussions please see jestjs/jest#5706.

For me, the plus point of the binary was that I could use all the options we already configured and pass them to the runner directly. I thought this would make the migration easier, but I think using the node API gives us more power over what is happening.

@lgandecki
Copy link
Member

Hello @DanielMSchmidt :-)

About the binary/api.. yeah. I'm not sure either way. Starting up with API is slow.. I'm guessing is the same with binary.
I think we need a way to reuse existing cypress session. I can imagine doing some hacks (make a temporary file to which we write all tests that have to run, with some defer.. and then run them together once the list stops growing. but that's really working around how the jest is supposed to run tests.
The other option would be to somehow have cypress detect whether there is an instance running - if there is, use that, if not, start up a new one and use that. Not sure if we can do that without quite extensive cypress modifications though.
Preferably, for the development mode, I would actually like to see th tests run in visual mode (and rerun them whenever I change my application code)
We've done that with chimp, when meteor app restarted - watched tests restarted as well, that was a fantastic dev experience.

Those are the areas are mostly concerned about currently.
What are your thoughts, goals, plans? :)

@DanielMSchmidt
Copy link
Author

Yes, both ways start the runner pretty slowly. I think reusing the runner makes sense in some cases, for us it doesn't on CI. (Our CI RAM limit is not big enough to run every test case with the same cypress instance, we need to "force" a shutdown to allow the chromium instance to release the memory)

I would like to make it configurable that we have re-runs per test case. Integration tests can be flaky so let's take this into account 🙈

I would love to start it in visual mode, I think that would be a really nice thing

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