Open jdoubleu opened 5 years ago
I have this problem too.
Related, but shouldn't the process also exit, when all specs ran successfully? It just keeps running otherwise which isn't ideal. I think this should happen if the --headless parameter is passed.
If that's your experience please open a separate issue. I haven't noticed anything like that
@LinusBorg We have this problem too. Maybe vue-cli-service serve
shouldn't run in watch mode when run on CI? Or having an option to run vue-cli-service build && npx serve dist
instead would make more sense?
Can I work on this?
As a workaround we run vue-cli-service build
prior to test runs to prevent builds hanging, but that increases the build time obviously.
Hello, we also have this problem sometimes on our CI testing the PR which hangs the build. Is there some work or someone working on this?
Thanks
@Seraf I wanted to but didn't find the time. Go ahead if you want to dig into it.
I'm sorry, I would really love to contribute but honestly, it's far beyond my skills :-(
I think that a good way to solve it would be to add an option to the serve
command to exit on failure.
Maybe I'm misreading but the serve command isn't exiting the process, right? Then adding an option to exit on an error and calling here with the parameter to exit would do the trick. Am I right?
This is also an issue with nightwatch - if there's an error, it just hangs (instead of exists) and doesn't run tests.
Version
3.4.0
Environment info
Steps to reproduce
cli-plugin-e2e-cypress
installed in your project and configure a CI to run testsWhat is expected?
When end-to-end tests are run inside a CI it should exit with an error code when there was an error building the app.
This way the CI fails and does not time out.
What is actually happening?
The WebpackDevServer shows errors, Cypress never starts and the CI might fail after a given timeout.
The
cli-plugin-e2e-cypress
waits for theserve
command to finish before starting up cypress.If there's an error in the build, the serve command never finishes, as the WebpackDevServer waits for changes to rebuild the app. However this will never happen in a CI and it might time out.