【问题标题】:Mono Framework NUnit VersionMono 框架 NUnit 版本
【发布时间】:2016-02-06 05:23:02
【问题描述】:

我目前正在使用 OS X 上 Mono 框架提供的 nunit-console (2.4.8) 为 Xamarin 应用程序运行单元测试。

我正在尝试通过 SonarQube 发布结果,我相信要使其正常工作,我需要 NUnit 2.5 或更高版本

目前由于 xml 结果文件中缺少“错误”属性而导致 SonarQube 错误,这似乎是在 NUnit 2.5 中引入的。

在 OS X 上升级 NUnit 有哪些选择?是否有任何版本的 Mono 框架支持这个更高版本的 NUnit?我可以将其作为单独的二进制文件获取吗?

【问题讨论】:

  • 我只是在解决方案/项目的基础上 nuget install nunit.runnersmono ./NUnit.Console.3.0.1/tools/nunit3-console.exe bin/Debug/yourtestassembly.dll stackoverflow.com/questions/35019083/… 但是您可以随时下载运行器 .exe,将其放在某个目录中并更新 nunit-console指向新程序集的 shell 脚本

标签: xamarin mono sonarqube nunit sonar-runner


【解决方案1】:

Mono 支持所有版本的 NUnit。没有安装包,但您可以将所有二进制文件以 zip 格式获取。

【讨论】:

  • 我可以通过下载二进制文件并使用 exec mono nunit-console.exe <params> 来完成这项工作
猜你喜欢
  • 2012-10-05
  • 1970-01-01
  • 1970-01-01
  • 2011-04-03
  • 1970-01-01
  • 2018-02-21
  • 1970-01-01
相关资源
最近更新 更多