Skip to content

Commit dea39e0

Browse files
committedOct 19, 2021
Add JSON format support to the README
1 parent fea8e03 commit dea39e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎README.md

+12
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ Directory: /users/brian/examples/spree
270270

271271
```
272272

273+
#### JSON Format
274+
275+
If you want to export the details using JSON, you can use this command:
276+
277+
```
278+
$ rake stats\[test/dummy,json\]
279+
280+
Directory: /Users/etagwerker/Projects/fastruby/rails_stats/test/dummy
281+
282+
[{"name":"Mailers","lines":"4","loc":"4","classes":"1","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Models","lines":"3","loc":"3","classes":"1","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Javascripts","lines":"27","loc":"7","classes":"0","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Jobs","lines":"7","loc":"2","classes":"1","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Controllers","lines":"7","loc":"6","classes":"1","methods":"1","m_over_c":"1","loc_over_m":"4"},{"name":"Helpers","lines":"3","loc":"3","classes":"0","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Channels","lines":"8","loc":"8","classes":"2","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Configuration","lines":"417","loc":"111","classes":"1","methods":"0","m_over_c":"0","loc_over_m":"0"},{"name":"Total","lines":"476","loc":"144","classes":"7","methods":"1","m_over_c":"0","loc_over_m":"142","code_to_test_ratio":"0.0","total":true}]
283+
```
284+
273285
### Testing
274286

275287
In order to run the tests for this gem:

0 commit comments

Comments
 (0)
Please sign in to comment.