简体   繁体   English

Gallio无法与声纳运行器一起使用

[英]Gallio not working with sonar-runner

I'm trying to get sonar-runner to run Gallio and OpenCover on my .net application. 我试图让声纳运行器在.net应用程序上运行Gallio和OpenCover。

I've set up the following: 我设置了以下内容:

Sonarqube v4.3.2 Sonarqube v4.3.2

Gallio v3.4.14 Gallio v3.4.14

NUnit v2.6.3 NUnit v2.6.3

OpenCover v4.5 OpenCover v4.5

Sonar-runner v2.4 声纳跑步者v2.4

Here is what I have in my sonar-project.properties file (the things conserning Gallio) 这是我的sonar-project.properties文件中的内容(有关Gallio的内容)

\#Gallio

sonar.gallio.mode=

sonar.gallio.coverage.tool=OpenCover 

sonar.donet.visualstudio.testProjectPattern=*Test* 

sonar.opencover.installDirectory=C:\\Program Files (x86)\\OpenCover\\

sonar.dotnet.test.assemblies=**\\bin\\Debug\\*.Tests.dll

sonar.gallio.runner=Local

I have tried all sorts of variations of this config file but the weird thing is that when I run sonar-runner, even with parameters -X or -e, there is absolutely no mention of Gallio or OpenCover in the output. 我已经尝试了此配置文件的各种变体,但很奇怪的是,即使运行声纳运行器,即使使用-X或-e参数,在输出中也绝对没有提及Gallio或OpenCover。 It's like the sonar runner is just skipping the Gallio section completely! 就像声纳赛跑者只是完全跳过了Gallio部分!

Does anyone here have a clue of what might be going on ? 这里有人知道会发生什么吗?

Latest versions of the C# Plugin do not support the automatic execution of Gallio (see this documentation ). 最新版本的C#插件不支持Gallio的自动执行(请参阅本文档 )。

Starting with C# 3.0, only the reuse of reports is supported to get test and coverage information for .NET projects. 从C#3.0开始,仅支持报表的重用以获得.NET项目的测试和覆盖率信息。 Please read the documentation page of the C# plugin to know how to do that. 请阅读C#插件文档页面以了解操作方法。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM