Cypress doesn't run all tests and reports as done
See original GitHub issueCurrent behavior:
From time to time Cypress doesn’t run all the tests and reports as done, without any additional output (first image), it does not even log the test result table. In the mochawsome output, we can clearly see, that all the tests that are not shown in output were not really running. This behavior happens even with a single test (second image)
Desired behavior:
If Cypress doesn’t finish all the tests it would be nice if it could return a non-zero return code. Or ideally, if it could process everything as we’re used to.
Steps to reproduce: (app code and test code)
This behavior is not reproducible, it happens only from time to time.
Versions
Cypress: 3.4.0 OS: Dockerized Ubuntu 18.04 bionic Docker: 18.6.3 ENV: Gitlab CI that runs on Kubernetes
Cypress setup
Cypress cmd: cypress run --spec <list of ~20 spec files>
cypress.json:
{
"defaultCommandTimeout": 20000,
"requestTimeout": 5000,
"responseTimeout": 45000,
"projectId": "REDACTED",
"supportFile": "cypress/support/index.ts",
"viewportHeight": 1024,
"chromeWebSecurity": false,
"viewportWidth": 1440,
"videoCompression": false,
"blacklistHosts": [
<REDACTED>
],
"reporter": "mochawesome",
"reporterOptions": {
"reportDir": "cypress/test-results",
"overwrite": false,
"html": false,
"json": true
}
}
plugins used:
"cypress": "~3.4.0",
"@cypress/webpack-preprocessor": "4.1.0",
"cypress-failed-log": "^2.5.1",
"cypress-pipe": "^1.4.0",
"cypress-plugin-retries": "^1.2.2",
"@4tw/cypress-drag-drop": "1.2.1",
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:8 (4 by maintainers)
Top GitHub Comments
Any updates on this topic?
@dinuemani Your issue does not look related to the original issue at all. Open a new issue with a reproducible example.
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.