8000 Add a Json reporter by educlos · Pull Request #143 · onsi/ginkgo · GitHub
[go: up one dir, main page]

Skip to content

Add a Json reporter - #143

Closed
educlos wants to merge 2 commits into
onsi:masterfrom
educlos:master
Closed

educlos wants to merge 2 commits into
onsi:masterfrom
educlos:master

Conversation

@educlos
@educlos educlos commented Feb 19, 2015
Copy link
Copy Markdown

Implements Json reporter
Any comments welcome

Tests: Ran 52 of 52 Specs in 0.480 seconds

Reference: #141
cc: @abourget

@onsi
onsi commented Feb 19, 2015
Copy link
Copy Markdown
Owner

Awesome! I'll try to take a look soon. I'm thinking of adding "first class" support for this whereby someone could run --json and see JSON output instead of the default test runner output.

That way ginkgo -p --json will also allow us to emit JSON in parallel (the story around how parallel runs work with custom reporters is woefully incomplete, sadly).

Thanks so much!

@onsi
onsi commented Feb 21, 2015
Copy link
Copy Markdown
Owner

Finally taking a look now.

I think it would be more flexible if the reporter were passed an io.Writer instead of a filename. I'll make that change and then merge it in. Thanks!

@onsi
onsi commented Feb 21, 2015
Copy link
Copy Markdown
Owner

Hmm.. so looking through it looks like this reporter collects test state and only emits output - as a single JSON document - at the very end.

There's a longer term vision that I have in mind in which tooling could be built on top of Ginkgo to handle streaming output. I was thinking that a JSON reporter would emit little snippets of JSON as the tests ran.

@onsi
onsi commented Jun 1, 2017
Copy link
Copy Markdown
Owner

Am going through and cleaning up old issues/PRs. Closing this one. Please reopen it if you would like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0