I have some problems in sonarqube-go-demo, that coverage value is not correct.
I got coverage is 87.5% in local, but there is 64.3% in sonarqube.
Steps to Reproduce
There is tips for sonarqube:
But:
go test ./... -coverprofile=coverage.out
? github.com/yangwenmai/sonarqube-go-demo [no test files]
ok github.com/yangwenmai/sonarqube-go-demo/math 0.008s coverage: 87.5% of statements
I think the coverage of the calculation is wrong!
The coverage's result is 87.5%, not include sonarqube-go-demo/main.go#main()
Description
I have some problems in sonarqube-go-demo, that coverage value is not correct.
I got coverage is 87.5% in local, but there is 64.3% in sonarqube.
Steps to Reproduce
There is tips for sonarqube:
But:
I think the coverage of the calculation is wrong!
The coverage's result is 87.5%, not include
sonarqube-go-demo/main.go#main()
Content of your sonar-project.properties
Versions
Docker images:
kennyallen/sonarqube:7.2.1
SonarQube Scanner for Jenkins: 2.6.1 gometalinter: master go: 1.10.3