简体   繁体   English

当前的SonarQube是否支持所有C#分析功能?

[英]Does current SonarQube support all the C# analysis functionality?

I have been trying to setup a SonarQube instance which would include the test execution and coverage calculations. 我一直在尝试设置SonarQube实例,该实例将包括测试执行和覆盖率计算。 I have been using SonarQube 4.3.2 with C# Plugin 3.2. 我一直在使用带有C#插件3.2的SonarQube 4.3.2。

What I wanted to use for tests / coverage was NUnit, Gallio & OpenCover 我想用于测试/覆盖范围的是NUnit,Gallio和OpenCover

First problem I got was that irrelevant of the configuration there is no appearance of Gallio or mention of tests. 我遇到的第一个问题是与配置无关,没有出现Gallio或测试的情况。 Analysis itself runs fine but all other integration for C# stuff seems to be missing. 分析本身运行良好,但似乎缺少所有其他C#集成。

Then I tried with old plugins (C# Ecosystem, I tried 1.4 versions from http://mvnrepository.com/artifact/org.codehaus.sonar-plugins.dotnet.csharp ) then gallio seems to work, but analysis brakes down, and when I try to use FxCop for instance it reports that rules could not be read ... 然后,我尝试使用旧的插件(C#生态系统,我尝试了来自http://mvnrepository.com/artifact/org.codehaus.sonar-plugins.dotnet.csharp的 1.4版本),但Gallio似乎可以正常工作,但分析会失败,何时进行分析我尝试使用FxCop例如它报告无法读取规则...

It is interesting to notice that there are no plugins for Gallio in 3.2 version (are they perhaps bundled inside this 3.2 C# plugin now?) 有趣的是,在3.2版本中没有用于Gallio的插件(它们现在可能捆绑在这个3.2 C#插件中了吗?)

To cut the story short, question is: 简而言之,问题是:

Does the current SonarQube version (4.3.2) support all the functionality for C# (.NET) project analysis, including test execution and code coverage? 当前的SonarQube版本(4.3.2)是否支持C#(.NET)项目分析的所有功能,包括测试执行和代码覆盖率?

I have a feeling that only "basic" analysis is supported at the moment. 我感到目前仅支持“基本”分析。

Gallio support has been removed. Gallio支持已被删除。 From now on,You need to produce coverage files independently and import these files into sonar. 从现在开始,您需要独立生成coverage文件并将这些文件导入声纳。

You can go through this link for further information 您可以通过此链接获取更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SONARQube 的 C# 多解决方案文件支持 - C# Multiple Solution file support for SONARQube 将SonarQube C#规则集集成到TeamCity以进行代码分析构建中断 - Integrate SonarQube C# ruleset to TeamCity for Code Analysis Build Break "SonarQube C# 分析失败“不是指针的有效行偏移”" - SonarQube C# Analysis Fails to 'Not a Valid Line Offset for Pointer' 使用Jenkins和Sonarqube分析c#项目-调用MSBuild.SonarQube.Runner.exe结束时出错 - Analysis c# Project with Jenkins and Sonarqube - Error calling MSBuild.SonarQube.Runner.exe end SonarQube MsBuild,是否支持C#7.0本地功能? - SonarQube MsBuild, support for C# 7.0 local functions? MSBuild SonarQube Runner是否支持C ++项目? - Does the MSBuild SonarQube Runner support C++ projects? c# Application.Current.Windows 不包括所有窗口 - c# Application.Current.Windows does not include all windows PinchToZoom 功能不起作用 C# Unity - PinchToZoom functionality does not work C# Unity 原子符号链接替换 windows c# 抛出 IOException “此应用程序不支持符号链接上的当前操作” - Atomic symlink replacement windows c# throws IOException “This application does not support the current operation on symbolic links” SonarQube对C#文件的分析失败:对文件中不存在的行号的引用 - SonarQube analysis of C# file failing: References to a line number not present in the file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM