gotestyourself / gotestyourself/gotestsum

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

Open
#285 1 comment 0 reactions 0 assignees View on GitHub
test2json-bug
Dominant language
Go
Stars
2.7k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/13558009/201234621-7f310ef1-a245-4669-b348-5c4ece72e42b.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the report with a test containing a fmt.Printf statement and inspect how its output is interpreted in the final test summary. Done means a passing test with this output remains classified and summarized as passing rather than as a failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.