SonarCloud does not give Warning or Error if a Unit test Case fails during gitaction

  • ALM used (GitHub)
  • CI system used (GitAction)
  • Languages of the repository - Go-lang
    I used the below command to generate coverage and test reports
    ENV=test go test -coverprofile=cover.out ./internal/app/test/... -v -covermode=count -json > report.json

It has generated the following report
report.json (622.1 KB)

As you can see it has one failed test case and SonarCloud does not show any warning or error

This is my sonar properties

sonar.projectKey=shopuptech_sr_service
sonar.organization=shopuptech
sonar.projectName=sr_service
sonar.projectBaseDir=GoLang/src/github.com/voonik/sr_service
sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,cover.html,cover.out,cover.text.tmp
sonar.go.coverage.reportPaths=cover.out
sonar.go.tests.reportPaths=report.json
sonar.host.url=https://sonarcloud.io
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/vendor/**

Coverage is working fine.
Can anyone help

Hey there.

What do you see reported as Test measures? Anything at all? Try sharing a screenshot like this: