-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 JSON reporter #2706
Merged
Merged
Add JSON reporter #2706
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
2acb192
Add initial class for JsonWriter
uyha 85c8fdc
Add full implementation for JsonWriter and tests for it
uyha 3bccecf
Make JsonWriter accept more arithmetic types
uyha aabaced
Make JsonValueWriter accept even more types
uyha e499b9c
Make constructor with indent level public, remove useless JsonWriter,…
uyha af8d480
Handle moved from Json{Object,Array}Writer
uyha 8450e1f
Fix quoting bug
uyha 50818bb
Add test for Custom class for JsonValueWriter
uyha 7645901
Handle quote and add test for it
uyha 51daec3
Add barebone JsonReporter which only reports test cases
uyha 3466ae2
Remove unnecessary functions
uyha 5de01e6
Change function names to {start,end}{Object,Array}, add section infor…
uyha bca353b
Escape quotes for JSON report passing regular expression
uyha 875a266
Fix PR according to comments
uyha 8311231
Add missing endline in test case
uyha aef7fb0
Add "version" and "metadata" field
uyha 6552d85
Implement listing
uyha 0231352
Remove unnecessary startObject
uyha 17d5ac1
Change how writeSourceInfo and writeCounts are implemented
uyha 1a77b58
Fix "totals" attribute
uyha 27d765e
Change "test-cases" to "test-resulst", use `writeSourceInfo` instead …
uyha cf58e93
Unify source-location, show properties as a list
uyha 755800a
Adjust section statistics to comments
uyha 23cfd79
Have `startArray` and `startObject` return the writer
uyha c83f25f
Make the code compilable for C++ 14
uyha f836897
put sections in `sections` property, still need to make them nested
uyha 0737f88
switch to using `CumulativeReporterBase` instead of `StreamingReporte…
uyha 2e422fe
JSON reporter: clean up the listings a bit
horenmar d3747f5
JSON reporter asks for stdout redirect
horenmar 88ef5d6
Cleanout superfluous variable assignments
horenmar 151f344
Stub of streaming json reporter
horenmar 121ffa6
Fix size_t -> uint64_t confusion
horenmar d4f6649
Fix test
horenmar 87b31a0
Actually commit updated approval tests
horenmar 1f5542b
Meson build fix
horenmar 1c41509
Fix license header
horenmar ff586de
Try fix for old GCC versions
horenmar d2dcbe7
Fix raw string literal compilation for older compiler
horenmar 9b0c7b3
.
horenmar 934c4ef
meson
horenmar f372cec
Fix missing include
horenmar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I wasn't sure what to do when writing this, since I saw something similar to this in the XML reporter, I followed it