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

printf line cause a FAIL: message when all test cases are passing #285

Open
dschveninger opened this issue Nov 11, 2022 · 1 comment
Open
Labels
test2json-bug A bug in test2json which impacts gotestsum

Comments

@dschveninger
Copy link

We had someone leave fmt.printf statement it the test and it wrote the following

anExampleKey%!(EXTRA string=aValue, vertypes.VersionBoundary={1.0.0 2.0.0 []})anExampleKey%!(EXTRA string=aValue2, vertypes.VersionBoundary={2.0.0 []})

The test passed but it was summarized as a failure in the end

Hope this helps to identify the issue, if not let me know. Thanks for the tool
image

@dnephin dnephin added the test2json-bug A bug in test2json which impacts gotestsum label Nov 11, 2022
@dnephin
Copy link
Member

dnephin commented Nov 11, 2022

Thanks for the bug report! This is unfortunately a common problem with go test -json (which gotestsum reads). The issue tracking that problem is golang/go#26325. It looks like it was recently closed, so maybe go1.20 will fix this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test2json-bug A bug in test2json which impacts gotestsum
Projects
None yet
Development

No branches or pull requests

2 participants