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.

No stack traces in `cypress run` and inconsistent from `cypress open`

See original GitHub issue
  • Operating System: OSX
  • Cypress Version: 0.20.1
  • Browser Version: 61.0.3163.100 (Official Build) (64-bit)

Is this a Feature or Bug?

Bug

Current behavior:

Using a Nuxt app and cypress run from the command line, the tests linked below show an Uncaught SyntaxError: Unexpected identifier with no stack trace, but work perfectly when using cypress open

Commenting out cy.visit seems to fix the error, but obviously the tests still fail which suggest to me it’s an error when processing the page however I don’t know how to find out any further than that without any clues.

Desired behavior:

The behaviour in open and run should be the same, but also primarily there should be stack traces to debug syntax errors.

How to reproduce:

Basic versions of the tests and results shown here: https://gist.github.com/samtgarson/dadd2d760c7701c8ab0c2ee8e89bd9a4

I can’t share the entire repo but if you have no idea where to begin I can try to recreate with a basic example.

Test code:

Above

Additional Info (images, stack traces, etc)

Above

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Oct 26, 2017

Have you tried running the tests with cypress open and selecting the Electron browser? We use Electron to run headlessly in cypress run. I’m wondering if the error would show up there.

0reactions
brian-manncommented, Feb 16, 2018

Released in 2.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
Open Cypress via cypress open · Go to Developer Tools -> View App Data · This will take you to the directory in...
Read more >
Cypress: What is new in v9.5.0 & v9.5.1? | by Hussein Baashen
Enhancements were made to the error experience in both run mode and open mode to improve readability and provide meaningful stack traces.
Read more >
Test result not displayed in azure and strange result using ...
When I executed the PowerShell for the cypress run and I got this ... I have read a lot and try many things...
Read more >
Getting Error While Executing 'Cypress Open' - ADocLib
Component tests will not be executed when running cypress open or cypress run. The full stack trace from errors thrown in the preprocessor...
Read more >
E2E Testing with Cypress - 02 - Writing Tests
This is normal - we haven't written any tests! Sometimes you'll also see this message if there was an error parsing your test...
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