Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No 'Test failed, details in $1' message in console log #15

Open
darina-techery opened this issue Mar 26, 2018 · 0 comments
Open

No 'Test failed, details in $1' message in console log #15

darina-techery opened this issue Mar 26, 2018 · 0 comments

Comments

@darina-techery
Copy link

When I run my tests in headless mode, I do not receive any output in my console log, though report is generated.

I have a sample spec with 1 failing test. I launch it using the following command: as-a staging cypress run, where 'staging' is a user in staging env, or CYPRESS_BASE_URL=... cypress run.
In both cases I can see no message 'Test failed, details in $1' in my output. Instead, a file 'failed-exec.json' is generated in the project root folder. It contains the following data:

  "stdout": "",
  "stderr": "/bin/bash: ./on-failed.sh: No such file or directory",
  "code": 127
}

A report file, 'failed-${testname}.json' appears next to it.

I have require('cypress-failed-log'); in my support/index.js and NPM script failed-test in package.json. The cypress-failed-log package is listed under devDependencies in package.json.
Cypress version: 2.1.0
cypress-failed-log: 2.0.0
My tests are running under macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant