-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add output option to JSON reporter #4131
Comments
@munierujp In your shell you can pipe the report output to a file. You don't need a |
The standard output may occasionally contain noise.
Is there a difference between these reporters? |
any update here? if you need another use case to add momentum to this ticket: i'm trying to add e: e2: @munierujp's solution below does what i need. thanks! |
I've created a third-party reporter for outputting test result as JSON file. |
Having both human readable console output and json or xunit file output at same time would be very useful. I run into issue because json-file-reporter doesn't include |
@dorny yes, you should definitively terminate this ridiculous situation. |
@juergba sure I will do my best :) And don't get me wrong. My intension was not to be offensive. I was simply pointing out current situation is not ideal for the user and your suggestion to pipe the output does not cover all use cases. By the way, I actually doesn't need this for myself. Meanwhile I've also discovered another option: mochawesome reporter. |
@juergba However I'm not so sure about unit test. All other reporter tests are using different pattern - example here. My idea would be to remove So should I remove setting of the |
@dorny thank you for taking over.
I blamed lib/reporters/json.js and found #1294, which states: So I propose to leave this property as is, but refactor the tests as per your suggestion. Following the I don't know this part of our codebase well either, and mocks aren't really my friends. So you shouldn't trust my comments completely. |
It looks like a fix was merged 5 months ago. Is this available now? |
@opub no fix has been merged, this PR has never been finished. |
Describe the solution you'd like
I'd like to use test report for other applications (e.g. Slack)
So, JSON file is useful.
package.json
:slack.js
:Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: