可以在不安装 Gallio 的情况下运行 Gallio/MbUnit 测试吗?

发布于 2024-08-10 02:23:03 字数 541 浏览 3 评论 0原文

我已经在 Visual Studio 2008 中安装了 TestDriven.Net,当我从 TD.Net 运行 mbunit 测试时,我收到以下消息:

您似乎正在尝试执行 Gallio/MbUnit 单元测试。

对于 Gallio v3.0.6 build 787 / Gallio v3.1 build 313 或更高版本(推荐): 请确保包含“MbUnit.dll”引用的目录也包含 Gallio 的 测试运行程序文件('MbUnit.dll.tdnet'、'TDNet\Gallio.TDNetRunner.dll'、'Gallio.dll' 等)

好吧。我还没有安装 Gallio,这就是它抱怨的原因。

我知道我现在可以轻松安装 Gallio 并完成它。然而,我真的很想知道是否可以在每个开发人员的机器上安装 Gallio 的情况下运行这些测试。 我可以在我的 bin 目录中包含几个 dll 来使其工作吗?

以前有人成功过吗?

注意:我已按照上面消息中的说明进行操作,但没有成功。

谢谢!

I've installed TestDriven.Net in Visual Studio 2008 and when I run a mbunit test from TD.Net I get this message:

It looks like you're trying to execute a Gallio/MbUnit unit test.

For Gallio v3.0.6 build 787 / Gallio v3.1 build 313 or above (recommended):
Please ensure that the directory containing your 'MbUnit.dll' reference also contains Gallio's
test runner files ('MbUnit.dll.tdnet', 'TDNet\Gallio.TDNetRunner.dll', 'Gallio.dll' etc.)

Well duh. I haven't installed Gallio yet and that's why it's complaining.

I know that I can easily install Gallio now and get over with it. However, I will really like to find out if I can run these tests without installing Gallio on every single developer's machine. Can I include a couple of dll's in my bin directory to get this working?

Has anyone had success with this before?

Note: I have followed the instructions in the message above and it didn't work.

Thanks!

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

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

发布评论

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

评论(2

潇烟暮雨 2024-08-17 02:23:03

看起来您正在运行全新版本的 TDNet,它应该支持开箱即用地运行 MbUnit 测试,无需任何安装。所以这样很好。

尝试获取 Gallio 的 ZIP 文件分发并将其解压到某个地方。您根本不需要重新排列文件。只需从您的测试项目中现场引用它们即可。

您需要复制到源树的最小文件集有点复杂,因为它取决于您想要保留的功能。一般来说,删除您现在不想使用的测试框架适配器(RSpec、NUnit、csUnit 等)或绝对需要安装的插件(VisualStudio、ReSharper)的文件夹是安全的。

请记住,您需要保留您使用的所有插件的 *.plugin 文件和资源。这些 dll 本身是不够的。

It looks like you are running a brand new version of TDNet that should support running MbUnit tests right out of the box without any installation required. So that's good.

Try grabbing the ZIP file distribution of Gallio and extracting it somewhere. You should not need to rearrange the files at all. Just reference them from your test project in situ.

The minimum set of files that you need to copy to your source tree is a bit complicated because it depends on the features that you want to keep. Generally it's safe to delete the folders of test framework adapters that you don't want to use right now (RSpec, NUnit, csUnit, etc.) or for plugins that absolutely require installation (VisualStudio, ReSharper).

Just keep in mind that you need to keep the *.plugin files and Resources for all of the plugins that you use. The dlls are not sufficient on their own.

榆西 2024-08-17 02:23:03

你不需要安装 Gallio,你只需要通过 nuget 提供的 DLL。检查一下,将其应用到您的项目中,然后检查 dll,就可以开始了。不过,他们需要安装 TDNet 等测试运行程序。

  1. 打开VS2012
  2. 选择工具>库包管理器>管理解决方案的 NuGet 包...
  3. 搜索“Gallio & MbUnit”&安装(将询问您要将 dll 应用到哪些打开的项目)
  4. 对下载的包目录和 dll 进行 SVN 签入。

You don't need to install Gallio, you just need the DLL which is offered via nuget. Check it out, apply it to your projects, then do a check in on the dll and you're good to go. They will need a test runner such as TDNet installed though.

  1. Open VS2012
  2. Select Tools > Library Package Manger > Manage NuGet Packages for solution...
  3. Search for "Gallio & MbUnit" & Install (will ask you which open projects you want to apply dll to)
  4. Do a SVN check-in on the packages dir and the dll's that are downloaded.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文