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

Test output reformatter #30

Closed
ghost opened this issue Jan 1, 2022 · 0 comments
Closed

Test output reformatter #30

ghost opened this issue Jan 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 1, 2022

As indicated in matrix-org/complement#268 it would be useful to have a feature where you could specify an external script to reformat the output of individual tests. Gotestfmt would take the output of each test case and send it to an external program for formatting.

For example:

go test -json -v ./... | gotestfmt -formatter ./cmd/test-format/main.go

The program would be called as many times as there are test cases with a JSON passed on the standard input. The program would need to produce the desired output on the standard output..

@ghost ghost added the enhancement New feature or request label Jan 1, 2022
@ghost ghost self-assigned this Jan 1, 2022
ghost pushed a commit that referenced this issue Jan 7, 2022
ghost pushed a commit that referenced this issue Jan 7, 2022
ghost pushed a commit that referenced this issue Jan 7, 2022
ghost pushed a commit that referenced this issue Jan 7, 2022
ghost pushed a commit that referenced this issue Jan 7, 2022
@ghost ghost closed this as completed in b92e541 Jan 14, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

0 participants