Skip to content

Conversation

jmaitrehenry
Copy link

This commit changes verbose mode to stream test output immediately as events are decoded, instead of dumping full JSON events after parsing. It initializes the report and start time before processing the event loop. While reading events, if verbose is enabled and the action is build-output or output, it prints the event’s textual output directly. The prior behavior of marshaling and printing the entire event JSON in the later loop is removed.

We use it in our github action like that:

run: go test -v -json ./... | go-ctrf-json-reporter -verbose -output unit-tests-report.json

And now we can follow the progress during the build.

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.

1 participant