-
Notifications
You must be signed in to change notification settings - Fork 36
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 statistics to JSON and YAML reports #730
Conversation
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
ee27345
to
14dc8d2
Compare
Do you mind adding a test for this? |
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
Added in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me, except that when the diff option is passed, an empty Stats: dictionary is generated and appended, which differs from the terminal and strings renderers.
Ah, yea, that's an easy fix. I'll push that shortly. |
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
Fixed in |
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing that up, that works for me.
Addresses: #725
This is a first pass at adding statistics to JSON and YAML reports. For now, the values are not formatted or converted like the terminal-based statistics are.
JSON:
YAML:
Also, when not using
--stats
, theStats
fields will not be present in the output.