When analysing a project with a test report, SurefireParser will process the reports and calls context.saveMeasure on the unit test resources. But if the unit test resources are not published to sonar-scanner via sonar.tests (cmdline or sonar-project.properties file), the unit test resource can't be found and context.saveMeasure will be invoked with null as resource parameter.
This will ultimately crash sonar-scanner.
This plugin should check if the unit test resource can be retrieved before calling context.saveMeasure to prevent the crash.
Tested on SonarQube 5.6.6 and sonar-objective-c plugin 0.6.1.
But will most likely occur on SonarQube 6.x too.
When analysing a project with a test report, SurefireParser will process the reports and calls context.saveMeasure on the unit test resources. But if the unit test resources are not published to sonar-scanner via sonar.tests (cmdline or sonar-project.properties file), the unit test resource can't be found and context.saveMeasure will be invoked with null as resource parameter. This will ultimately crash sonar-scanner.
This plugin should check if the unit test resource can be retrieved before calling context.saveMeasure to prevent the crash.
Tested on SonarQube 5.6.6 and sonar-objective-c plugin 0.6.1. But will most likely occur on SonarQube 6.x too.