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

Outputs not printing to xml as described in README #137

Open
AmberWilkie opened this issue Sep 28, 2020 · 4 comments
Open

Outputs not printing to xml as described in README #137

AmberWilkie opened this issue Sep 28, 2020 · 4 comments

Comments

@AmberWilkie
Copy link

Hello. I have added the following to my test file, as per the README:

  it('should capture output', function () {
    this.test.consoleOutputs = ['output from the basic test']
  })

I run my tests with this command:

npx cypress run --env configFile=prod --spec "cypress/integration/testfile.js" --reporter junit --reporter-options "mochaFile=results/[hash].xml,outputs=true,toConsole=true"

If the test errors, I get a <failure> but I never get a <system-out>.

Maybe this isn't an issue and there's something wrong with my code above. If so, I'd be very grateful if someone could tell me what I've done wrong. If not, any other help?

@vishallanke
Copy link

vishallanke commented Oct 6, 2020

We are also facing same issue. It looks like defect.
I came across this - cypress-io/cypress#4245

@ZiedHf
Copy link

ZiedHf commented Jul 8, 2021

Same issue here.

@MoritzMeinhardt
Copy link

same issue here

@ashinga48
Copy link

Still seeing same issue, did anyone resolve this?

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

5 participants