zoukankan      html  css  js  c++  java
  • 上传NUnit的单元测试结果和OpenCover的单元测试覆盖率到SonarQube服务中

    SonarQube.Scanner.MSBuild.exe begin /k:"OMDCCQuotes" /d:sonar.host.url="http://myip:9000" /d:sonar.login="mykey" /d:sonar.cs.nunit.reportsPaths="%CD%TestResult.xml" /d:sonar.cs.opencover.reportsPaths="%CD%opencover.xml"
    
    
    MsBuild.exe OMDCCQuotes.sln /t:Rebuild
    
    
    "packagesOpenCover.4.6.519	oolsOpenCover.Console.exe" -output:"%CD%opencover.xml" -register:user -target:"packagesNUnit.ConsoleRunner.3.9.0	ools
    unit3-console.exe" -targetargs:"OMDCCQuotes.Tests.UnitinDebugOMDCCQuotes.Tests.Unit.dll"
    
    
    SonarQube.Scanner.MSBuild.exe end /d:sonar.login="mykey"

    在项目中要安装好NUnit.ConsoleRunner和OpenCover nuget包。并且在path中添加MSBuild.exe和SonarQube.Scanner.MSBuild.exe的路径。

  • 相关阅读:
    mysql外键添加error1215
    shell命令获取最新文件的名称
    centos7 apache提供文件下载
    centos7 时间设置
    微服务通信的类型
    angular-cli
    npm
    模块相关
    加油!冲冲冲
    软件评测
  • 原文地址:https://www.cnblogs.com/Martianhh/p/10138690.html
Copyright © 2011-2022 走看看