TestDriven.NET 没有运行我的 MbUnit 设置方法

发布于 2024-07-05 10:41:01 字数 205 浏览 5 评论 0原文

我创建了一些 MbUnit 测试装置,其中具有标有 SetUp 属性的 SetUp 方法。 这些方法在测试之前使用 MbUnit GUI、控制台运行器和 ReSharper MbUnit 插件运行得很好。 但是,当我使用 TestDriven.NET 运行测试时,它根本不运行 SetUp 方法。

有谁知道这是 TestDriven.NET 的错误还是我的设置有问题?

I've created some MbUnit Test Fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with TestDriven.NET it does not run the SetUp methods at all.

Does anyone know if this is a bug with TestDriven.NET or if I have something setup wrong?

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

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

发布评论

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

评论(4

多情癖 2024-07-12 10:41:01

自 v3.0.4 以来,最新版本的 Gallio 不再存在此问题。 只需确保使用 64 位安装程序即可。

No longer an issue with recent versions of Gallio since v3.0.4. Just make sure to use the 64-bit installer.

献世佛 2024-07-12 10:41:01

在 Vista 64 上遇到此问题数周后,我发现了 Dave Bouwman 今天发布的文章解决了这个问题。

After having this problem for weeks on Vista 64, I found a post by Dave Bouwman just today, and it fixed this problem.

待天淡蓝洁白时 2024-07-12 10:41:01

使用 nuget 安装 NUnit 后,我​​遇到了完全相同的问题...之前我一直使用旧版本的 NUnit,一切都工作正常。

我认为 TestDriven 与最新版本的 NUnit 不兼容。

我已经改用 NCrunch,它是免费的,并且在您编码时在后台编译/运行测试等。 强烈推荐。

I had this exact same issue after installing NUnit using nuget ... previously I had been using an older version of NUnit and everything had worked fine.

I think TestDriven is not compatible with the latest version of NUnit.

I've switched to using NCrunch, which is free, and compiles/runs tests in the backgound as you are coding, amongst other things. Highly recommended.

笑咖 2024-07-12 10:41:01

我在 NUnit 和 TestDriven.NET 中遇到了类似的问题,我花了几个小时才弄清楚。
我安装了下面的 Visual Studio 扩展,它在测试中遇到了断点,但跳过了 [TestFixtureSetUp] 中的断点。

输入图片这里的描述

事实证明,我还需要将实际的 TestDriven.NET 软件安装在 C:\Program Files (x86)\TestDriven.NET 4

这可以从 https://www.testdriven.net/download.aspx

I came across a similar issue with NUnit and TestDriven.NET that took me hours to figure out.
I installed the Visual Studio Extension below and it hit breakpoint in the Tests but skipped the one in the one in the [TestFixtureSetUp].

enter image description here

It turned out that I also needed the actual TestDriven.NET software to be installed at C:\Program Files (x86)\TestDriven.NET 4

This is available from https://www.testdriven.net/download.aspx

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