cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.66k stars 3.16k forks source link

Add code frame for error messages in stdout #7819

Open kentcdodds opened 4 years ago

kentcdodds commented 4 years ago

Current behavior:

This output in CI is not as helpful as it could be

image

Desired behavior:

I love the codeframe added to the UI in https://github.com/cypress-io/cypress/pull/3930. I'd like a codeframe for the headless mode output as well.

Test code to reproduce

Any test that fails

Versions

cypress 4.9.0

Saibamen commented 4 years ago

Epic (games ;P): https://github.com/cypress-io/cypress/issues/7202

jennifer-shehane commented 4 years ago

This is part of the next phase of error improvements laid out in #7202.

We're also planning to generate the code frame in the Dashboard for recorded runs. The test output is already available to view there, so it's a matter of highlighting the correct lines.