有没有办法使用 Gallio 运行 MS 测试?

发布于 2024-09-17 22:23:20 字数 827 浏览 5 评论 0原文

我看过与此类似的其他问题,它们似乎都是 Visual Studio 2010 的 Pre-RTM(或者它们没有真正的答案)。

我已经下载了最新版本的 Gallio,并且正在尝试使用它运行我的 MS 测试项目。

我将 Gallio 添加到我的 MS 测试项目中的引用中,然后进行完整构建,然后在 Gallio 中打开编译后的 dll。

然后我尝试运行我的测试,但它们没有运行。我没有收到任何错误,只是它们失败了。

它显示218 次测试 - 0 次通过 - 1 次失败 - 0 次不确定 - 0 次跳过

我检查了运行时日志,它说它需要禁用的 Gallio.VisualStudio.Shell 。我检查了插件,结果是这样的:

Visual Studio Integration Shell
提供用于在 Visual Studio 中托管 Gallio 插件的框架。
已禁用:不满足插件启用条件。请注意,这是必须托管在第三方应用程序中才能工作的插件的预期行为。启用条件:'${process:DEVENV.EXE} 或 ${process:VSSTESTHOST.EXE} 或 ${process:QTAGENT.EXE} 或 ${process:QTAGENT32.EXE} 或 ${process:QTDCAGENT.EXE} 或 $ {进程:QTDCAGENT32.EXE}或${进程:MSTEST.EXE}'。

我什至没有在视觉工作室中运行,但它会根据需要看到它。我正在运行 devenv.exe(Gallio 和 Devenv.exe 都在我的帐户下运行)。

关于如何让它发挥作用有什么想法吗?

I have looked at other questions similar to this and they all seem to be Pre-RTM of Visual Studio 2010 (or they don't have a real answer).

I have downloaded the latest version of Gallio and I am trying to run my MS Test Project using it.

I added Gallio to my References in my MS Test Project then did a full build and then opened the compiled dll in Gallio.

I then then tried to run my tests and they don't run. I don't get any errors, just that they fail.

It says 218 tests - 0 passed - 1 failed - 0 inconclusive - 0 skipped.

I checked the run time logs and it says that it needs Gallio.VisualStudio.Shell which is disabled. I checked the plugins and this is that that one says:

Visual Studio Integration Shell
Provides a framework for hosting Gallio plugins within Visual Studio.
Disabled: The plugin enable condition was not satisfied. Please note that this is the intended behavior for plugins that must be hosted inside third party applications in order to work. Enable condition: '${process:DEVENV.EXE} or ${process:VSTESTHOST.EXE} or ${process:QTAGENT.EXE} or ${process:QTAGENT32.EXE} or ${process:QTDCAGENT.EXE} or ${process:QTDCAGENT32.EXE} or ${process:MSTEST.EXE}'.

I am not even running inside visual studio, but it sees it as needed. I have devenv.exe running (both Gallio and Devenv.exe are running under my account).

Any ideas on how to get this working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想你只要分分秒秒 2024-09-24 22:23:20

这是已修复的已知错误 ="http://ccnet.gallio.org/Distributables/" rel="nofollow noreferrer">构建 3.2.587 及更高版本。它确实阻止了 Gallio 测试运行程序在 Visual Studio 环境之外(例如,从 Echo 或 Icarus)正确执行基于 MSTest 的测试。

如果您现在需要让它工作,还有一个快速解决方法(来自 Kevin Ortman)。您可以删除以下插件定义数据文件中的整个属性 enableCondition (我相信在第 3 行或第 4 行):

  • Gallio.VisualStudio.Shell90.plugin
  • Gallio .VisualStudio.Tip90.plugin
  • Gallio.VisualStudio.Shell.plugin

或者如果您使用的是 VS2010:

  • Gallio.VisualStudio.Shell100.plugin
  • Gallio .VisualStudio.Tip100.plugin
  • Gallio.VisualStudio.Shell.plugin

This is a known bug fixed in build 3.2.587 an later. It did prevent the Gallio test runners to properly execute MSTest-based tests outside the Visual Studio environment (e.g. from Echo or Icarus)

There is also a quick workaround (from Kevin Ortman) if you need to make it work right now. You might just delete the whole attribute enableCondition in the following plugin definition data files (at line 3 or 4 I believe):

  • Gallio.VisualStudio.Shell90.plugin
  • Gallio.VisualStudio.Tip90.plugin
  • Gallio.VisualStudio.Shell.plugin

Or if you are working with VS2010:

  • Gallio.VisualStudio.Shell100.plugin
  • Gallio.VisualStudio.Tip100.plugin
  • Gallio.VisualStudio.Shell.plugin
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文