-
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
Cypress doesn't exit if a test fails in Gitlab-ci #30610
Comments
If Cypress doesn't exit then it looks like it is hanging for some reason. I'm not sure which version of Cypress you are using, since in your workflow you list Running image:
name: cypress/included:13.11.0
entrypoint: [""] in GitLab with one deliberately failing test and one passing test exits as follows:
So my suggestion would be to try to find out where it is hanging, and then why it is hanging. I don't believe that your Also I wonder how your workflow can execute without overriding the entrypoint https://github.com/cypress-io/cypress-docker-images/tree/master/included#gitlab-pipelines. |
I wonder too how you can test using
I would expect you to see the error message
|
In fact, if I try to use chrome, I receive an error message saying something like Chrome is not available. |
Ah, great. These look like a good place to get started. I'll give these a shot, thanks! |
That doesn't fit in with the previous information as |
Yes, you're right. In fact I didn't have the executor set to Docker, so this is why it was using the local chromium install. From what I've read, I can't mix shell commands in a job that runs with the docker executor, so for now, I've removed the image and I'm running against the local chromium install, which has been updated to version |
Current behavior
Hello, this is releated to issue #5845
I have a pipeline that runs cypress tests with the browser set to Chromium. The tests exit normally if all tests pass, but if there is a failure, no exit code is produced and Cypress just hangs. For now, I have a timeout set so that it will kill the job, but obviously this is undesirable. I have looked through the issues, but I haven't found any good solutions. I cannot use the start-server-and-test plugin as my server is Python based.
Desired behavior
Cypress should exit after a test failure in Gitlab-ci.
Test code to reproduce
Here's an abbreviated version of the script. Code to create a dash_server.py file can be found here.
When the test fails, the exit code is never printed, and the job waits until timeout.
Cypress Version
13.6.2
Node version
20.14.0
Operating System
Ubuntu 22.04
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: