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 run doesn't return to command line

See original GitHub issue

Current behavior:

cypress run

does not return to command line, under some circumstances, irrespective of the test results.

Desired behavior:

to return to command line, as the exit code is relevant when creating a build.

How to reproduce:

I could not replicate it, but the sequence of events in GUI is: VISIT url # containing a hash-bang XHR GET 200 XHR POST 404 XHR GET 200 # removes part of the URL hash-bang CONTAINS something XHR POST 200 XHR POST 200 # that’s when the DOM get’s updated with something XHR GET 200 NEW URL # restoring the hash-bang

It works fine in the GUI, on both Chrome and Electron, but it’s stuck in CLI with default browser (Electron).

Additional Info (images, stack traces, etc)

  • Operating System: MacOS Sierra 10.12.6
  • Cypress Version: 1.0.2
  • Browser Version: Electron 53

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
krishnaxvcommented, Mar 13, 2018

@brian-mann @bahmutov I am also facing this issue in GitLab CI. All the tests are running fine but the control is not returning back to CLI.

Is this an issue with Cypress or I am doing something wrong?

I have attached a screenshot of this issue.

cypress ci build

Any help or direction will be greatly appreciated. Thanks!

3reactions
gziolocommented, Nov 6, 2017

Use chrome instead of electron as the selected browser 😎

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line - Cypress Documentation
Run Cypress in the browser with the given name. If a filesystem path is supplied, Cypress will attempt to use the browser at...
Read more >
Cypress + yarn/npm won't run a CLI command in `after:run ...
This is logging "Before run" and the calendar (not exactly together) before running the specs, and only "After run" after running the specs....
Read more >
9 How To Run Cypress Tests in From Command Line - YouTube
In this video, I will show you how to run cypress using CLI commands. Cypress CLIhttps://docs. cypress.io/guides/guides/ command -lineCypress ...
Read more >
Cypress Tips and Tricks - Gleb Bahmutov
If you need to run the scripts one by one from the command line, ... If the fetch call succeeds, the returned text...
Read more >
Running Cypress tests in parallel in GitHub Actions without ...
It just won't let us include an env variable or do * command substitution. * * So, we can either just not use...
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