Lcov support for golang?

I’m trying to get coverage reports for golang but not using the output of go test -coverprofile=cover.out . because I’m in a monorepo with multiple languages. The tooling we are using produces lconv for all the languages in the monorepo.

I tried using sonar.go.lcov.reportPaths as a wild guess but no luck.

Is there a way to pass a coverage file to sonar that is in lcov format for golang?

Hi,

Welcome to the community!

For each language, we support the formats that are ‘native’ to that language. LCov is supported for JavaScript & TypeScript, but not for Go. If you can’t produce the native Go format, perhaps the Generic Test data format will be an option?

 
HTH,
Ann