Skip to content
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 jsonfile-timing-events flag for capturing only the timing events in a file #306

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented Feb 16, 2023

Branched from #305

Adds a new --jsonfile-timing-events flag. Similar to --jsonfile, all of the pass, fail, and skip events are written to this file.

This is useful when gotestsum is used with large projects that emit lots of verbose logs from tests. This new flag removes the need to post-process the jsonfile before saving it to an artifact.

See #303 (comment) and #258 (comment)

@dnephin dnephin deleted the branch gotestyourself:main March 29, 2023 17:44
@dnephin dnephin closed this Mar 29, 2023
@dnephin dnephin reopened this Mar 29, 2023
@dnephin dnephin changed the base branch from fix-jsonfile-close-order to main March 29, 2023 17:45
Write the newline as a separate rune to the writer to avoid accidentally modifying
the backing array, or having to allocate a new array unnecessarily.
@dnephin dnephin merged commit 83a50de into gotestyourself:main Apr 4, 2023
@dnephin dnephin deleted the jsonfile-events branch April 4, 2023 15:10
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.

None yet

1 participant