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

Bad file descriptor error with mochawesome reporter v7 #18786

Closed
cexbrayat opened this issue Nov 4, 2021 · 2 comments
Closed

Bad file descriptor error with mochawesome reporter v7 #18786

cexbrayat opened this issue Nov 4, 2021 · 2 comments

Comments

@cexbrayat
Copy link
Contributor

Current behavior

Mochawesome v7 just released, and using it with Cypress v8.7 and the following configuration:

{
  "reporter": "mochawesome",
  "reporterOptions": {
    "overwrite": false
  }
}

produces the following error:

[28541:1104/130233.876580:FATAL:scoped_file.cc(43)] Check failed: . : Bad file descriptor (9)
The Test Runner unexpectedly exited via a exit event with signal SIGTRAP

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: darwin (20.6.0)
Cypress Version: 8.7.0

Desired behavior

It works without the overwrite option.
It also works with mochawesome v6.3.1.

I couldn't reproduce with mocha and mochawesome alone (without cypress), so I suspect a Cypress issue. It does occur in all our Cypress projects which use mochawesome.

Test code to reproduce

https://github.com/cexbrayat/mochawesome-v7

yarn
yarn test

Remove the overwrite option from cypress.json and it works again.

Cypress Version

8.7.0

Other

node v14.18.1
macOS 11.6

@brandonb927
Copy link

brandonb927 commented Nov 4, 2021

Came here as I also ran into this issue this morning when attempting to upgrade to mochawesome reporter v7. Exact same error and outcome. It seems this might not be a Cypress issue, only a symptom exposed through Cypress adamgruber/mochawesome#363

@cexbrayat
Copy link
Contributor Author

cexbrayat commented Nov 5, 2021

Was fixed in mochawesome v7.0.1 adamgruber/mochawesome#363 (comment)

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

2 participants