question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress doesn't run all tests and reports as done

See original GitHub issue

Current 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)

Screenshot 2019-07-25 at 19 37 41

Screenshot 2019-07-25 at 19 40 12

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:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
v-anyukovcommented, Aug 28, 2019

Any updates on this topic?

0reactions
jennifer-shehanecommented, Feb 4, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
In some cases the Command Log, responsible for displaying test commands, assertions, and statuses in the Cypress Test Runner, may cause performance issues ......
Read more >
Cypress: interrupt all tests on first failure - Stack Overflow
But it doesn't work: tests keep running after error. My guess is that Cypress will throw an error only when all tests are...
Read more >
BrowserStack-Cypress CLI reference
List of all the CLI commands and args you can use to run tests, stop the ones that are running, and retrieve build...
Read more >
Run All Specs in Cypress v10 - Gleb Bahmutov
When component testing, this solution doesn't work for me, because it renders all the components used in the tests suites at once. Did...
Read more >
Cypress — initial setup - Kristijan - Medium
Headless, will just run all tests without opening a full browsers window. To run those you can use following commands, that you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found