0

Sonar CSharp 插件生态系统在处理结束时抛出错误。
我检查了coverage-report.xml,它只包含一行。

<PartCoverReport version="4.0" date="2011-08-10T10:09:12.1721003+08:00" />

我认为这是错误的可能原因。
我该如何解决这个问题?这是配置问题吗?
提前致谢。

请参阅下面的错误消息:
...

[INFO]  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c...  
[INFO]  Microsoft (R) FxCop Command-Line Tool, Version 10.0 (10.0.30319.1) X86  
[INFO]  Copyright (C) Microsoft Corporation, All Rights Reserved.  
[INFO]    
[INFO]  Loading C:\JanusPilot\SonarDotnetExample\Example.Application\target\sonar  \sonar.FxCop...    
[INFO]  Loaded DesignRules.dll...  
[INFO]  Loaded GlobalizationRules.dll...  
[INFO]  Loaded NamingRules.dll...  
[INFO]  Loaded PerformanceRules.dll...  
[INFO]  Loaded Example.Application.exe...  
[INFO]  Initializing Introspection engine...  
[INFO]  Analyzing...  
[INFO]  Analysis Complete.  
[INFO]  Writing 1 messages...  
[INFO]  Writing report to C:\JanusPilot\SonarDotnetExample\Example.Application\t  
arget\sonar\fxcop-report.xml...  
[INFO]  Done:00:00:01.1050632  
[INFO]  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c done: 2342 ms  
[INFO]  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@eb73e...  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 1:14.037s   
[INFO] Finished at: Wed Aug 10 10:13:29 CST 2011  
[INFO] Final Memory: 6M/15M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:s  
onar (default-cli) on project example: Can not execute Sonar: Error while trying  
 to get the next element name: ParseError at [row,col]:[1,75]  
[ERROR] Message: Can not call 'getLocalName(): cursor does not point to a valid  
node (curr event [null]; cursor state CLOSED)  
[ERROR] -> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit  
ch.  
[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 rea  
d the following articles:  
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
4

1 回答 1

0

我是 C# 插件的开发者之一。您应该通过向声纳用户邮件列表发送邮件来寻求帮助。您的 partcover 报告显示 partcover 未能成功收集覆盖率测量以确保测试执行。您有 3 个解决方案:

  • 试试ncover3
  • 跳过报道

If you need more details, again, please drop a message to the user mailing list

Regards

于 2011-09-05T11:48:48.347 回答