Sonar scanner fails to load Go test results

Full disclose I don’t use travis and I’m not sure why you’re seeing those warnings about missing test files, but I have been fighting with getting Go coverage and test reports into Sonar for a few days now and finally have it working, so here is a link to the rundown of my build-test process and settings. My inclusions and exclusions are a bit different from yours and I recall seeing some posts about how sonar scanner uses the exclusions and test.exclusions that can result in some behavior that is not intuitive from the property names. Take a look at and maybe emulate my config below and see if that helps?

3 Likes