sonar-csharp无法通过测试

时间:2017-11-30 04:27:16

标签: c# sonarqube

我按照https://github.com/SonarSource/sonar-csharp/blob/master/docs/contributing-plugin.md

构建了sonar-csharp插件

但代码无法传递测试和输出错误,如下所示。

Results :

Tests in error:
  CSharpSonarRulesDefinitionTest.test:38 ▒▒ NullPointer
  CSharpSonarWayProfileTest.test:39 ▒▒ NullPointer

Tests run: 22, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SonarC# parent ..................................... SUCCESS [  2.796 s]
[INFO] SonarQube .NET Tests Library ....................... SUCCESS [  7.697 s]
[INFO] SonarSource :: .NET :: Shared library .............. SUCCESS [  9.005 s]
[INFO] SonarC# ............................................ FAILURE [  4.419 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.035 s
[INFO] Finished at: 2017-11-30T13:08:36+09:00
[INFO] Final Memory: 42M/420M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project sonar-csharp-plugin: There are test failures.
[ERROR]
[ERROR] Please refer to C:\sonar-csharp\sonar-csharp-plugin\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sonar-csharp-plugin

0 个答案:

没有答案