-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support JSON output #20
Conversation
Codecov Report
@@ Coverage Diff @@
## main #20 +/- ##
==========================================
+ Coverage 69.73% 72.74% +3.00%
==========================================
Files 14 19 +5
Lines 598 675 +77
==========================================
+ Hits 417 491 +74
- Misses 181 184 +3
Continue to review full report at Codecov.
|
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.
LGTM. I would suggest making refactors and feature implementation in two different PR's. As a maintainer is harder to review the actual feature implementation
@etagwerker What is the best way to test the changes in this PR? |
In order to call the rake task and get JSON output will be like so: ``` rake stats\[test/dummy,json\] ```
@bronzdoc Good question, you can test it by doing this:
If you don't pass the second parameter, or you pass some garbage format, it will show the output as before... |
@etagwerker I tried the command you suggested but I still get the output as before What shell are you using?
|
@bronzdoc Weird! Are you using the latest version of this branch? |
@etagwerker ahh sorry! that was it! I had an outdated version :)
|
Hey,
This is a PR which adds support for a JSON formatter (see #12). I'm not sure what is the preferred/best way to tell rake stats to output JSON instead of a table in the console.
This set of changes includes a small-ish refactor:
Please check it out when you get a minute.
Thanks!