-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Summary
Hello everyone, I am trying to set up the coverage reporting for the monorepo with a couple of projects written in Go.
The reporting itself does work (see https://coveralls.io/github/kimak-irmagi/taidon).
However, whenever I try to look into the per-file detail, the Coveralls UI shows Source Not Available: https://coveralls.io/builds/77487560/source?filename=app%2Fapp.go
This seems to be caused by the wrong path - the actual path of the referred file is /frontend/cli-go/internal/app/app.go.
I've tried some pre-processing of the coverage file.
This is what being fed to the coveralls:
mode: set
frontend/cli-go/cmd/sqlrs/main.go:15.38,16.37 1 1
frontend/cli-go/cmd/sqlrs/main.go:16.37,18.31 2 1
...
frontend/cli-go/internal/app/app.go:101.2,102.18 2 1
frontend/cli-go/internal/app/app.go:102.18,104.17 2 1
...
Here is the command line:
coveralls report --debug --format golang coverage.out
Here is an excerpt of the coveralls debug output:
"source_files": [
{
"name": "sqlrs/main.go",
"coverage": [...]So it looks like the reporter does cut some path prefixes, causing the reference mismatch in the coveralls ui.
Can anyone shed some light on this behavior - how do I prevent it or alter so the sources are properly linked in the coveralls build report?