Cypress: Full path to failed specfile is not viewable from stdout

Created on 13 Aug 2019  路  5Comments  路  Source: cypress-io/cypress

Current behavior:

The specfiles are truncated in the stdout results of a run, making it difficult for users to track down which test file results they are looking at.

Screen Shot 2019-08-13 at 4 20 09 PM

Desired behavior:

Some suggestions

  • Make this configurable somehow
  • Have a better way to display the full specfile name (maybe return the line to print the entire length)

Versions

Cypress 3.4.1

pkserver

Most helpful comment

I wonder if we could get away with the following (simple) solution:
if the filepath is longer than let's say 20 characters, print it by itself on the first line and then print the rest of the stats on the second line for each spec.

By the way, this reporting is done not in the CLI NPM module but in packages/server in file https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/modes/run.coffee

All 5 comments

Please do that. I want to format the output to the console myself.

I wonder if we could get away with the following (simple) solution:
if the filepath is longer than let's say 20 characters, print it by itself on the first line and then print the rest of the stats on the second line for each spec.

By the way, this reporting is done not in the CLI NPM module but in packages/server in file https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/modes/run.coffee

Hey team! We need it badly... lets make it happen! :)

The code for this is done in cypress-io/cypress#5120, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

Released in 3.5.0.

Was this page helpful?
0 / 5 - 0 ratings