-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Reporter - the file (filename) property is undefined #1495
Reporter - the file (filename) property is undefined #1495
Comments
Having this same issue as well. This would be great to have as part of CircleCI test parallelization timings, as it requires the filenames to be present. |
Any news on this? Has anyone found a workaround for retrieving spec file names within a reporter? |
That would be good to have the path to the spec file indeed. :) |
Would be nice to have it, especially beacouse we are using cypress-run to re run failed tests, and we have failed reports collected by Jenkins due to that |
This bug prevents us from parallelizing Cypress in CircleCI by timings. |
I'm developing custom reporter and I would like to get screenshot of failed test. Without file name in mocha suite I could not access to cypress/screenshots failed test folder. |
Hi, I'm also interested by a correction on this issue, any news? This missing |
I've published a NPM package cypress-sonarqube-reporter to workaround this issue... |
* fix issue 1495 by adding cypress spec name to mocha suite * pass file through to reporter * comment out the log for file * ensure file is in runnable_props due to changes upstream * remove commented out log code * delete mocha.coffee * add e2e test Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Chris Breiding <[email protected]>
The code for this is done in cypress-io/cypress#3960, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When I use junit or any other reporter the
file
property of thesuite
object from therunner.on('suite', function(suite) {})
listener is undefined.Desired behavior:
The
file
property of the suite should be the name of the file which contains the given test suite.How to reproduce:
In the example below I used
junit
reporter, but it can be reproduced with any reporter which contains filename in their report.cypress run --spec [spec_file].js --reporter junit
orcypress run --reporter junit
Bug:
The generated report doesn't contain the
file
property.Expected:
You should have a
file
on the generated report.Additional Info (images, stack traces, etc)
Suite object from the reporter:
Generated report without filename:
The text was updated successfully, but these errors were encountered: