You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am generating respective coverage files for each _test.go file. However, I am getting an error while executing the gocovmerge command from last few days. I first encountered it on 25 March, then on 26-27 March, it worked fine. But again from 28-29 March, I am facing the same issue again.
Executed below command to generate merged coverage profile file
Merged coverage profile file being generated without any error
Observed output?
2021/03/30 01:43:34 failed to parse profiles: line "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" doesn't match expected format: couldn't find a before Count
Kindly assist in nailing down the issue.
The text was updated successfully, but these errors were encountered:
Check all of your myTest-*-coverage.profile files, it looks like one of them has invalid binary data in it (zero bytes). These should all be text files and not contain zero bytes.
Got one coverage file having binary data. There are 40 ish test patterns for unit tests and all of them are creating separate coverage profile file ${profileName}.profile with command: go test -p 1 -cover -v ./${pkgName} -run ${pattern} -coverprofile=${profileName}.profile ./${pkgName}
All other files are 1M in size and only file containing binary data in end has size 148K.
Any pointers on why it could happen?
Perhaps the go test run is failing or calling os.Exit incorrectly? I would regenerate all of your .profile files to see which one is the issue and then investigate that test suite to see why it's being generated incorrectly.
Go version (
go version
)?Details about the operating system and processor architecture (
go env
)?go env
OutputProblem statement
I am generating respective coverage files for each
_test.go
file. However, I am getting an error while executing thegocovmerge
command from last few days. I first encountered it on 25 March, then on 26-27 March, it worked fine. But again from 28-29 March, I am facing the same issue again.Executed below command to generate merged coverage profile file
Expected outcome?
Merged coverage profile file being generated without any error
Observed output?
Kindly assist in nailing down the issue.
The text was updated successfully, but these errors were encountered: