MSTest /noisolation 测试失败

发布于 2024-09-08 10:57:56 字数 184 浏览 1 评论 0原文

如果我将 MSTest 与参数 /noisolation 一起使用,我的测试就会失败,但如果没有它,它们就会通过。 如果我第一次运行不带参数的 MSTest,则会出现 ms office 配置框并配置一些内容,因为我的测试依赖于 excel。这只是第一次发生。然后测试就可以顺利运行。

但如果我使用参数运行测试,该框不会出现并且测试失败。

If I use MSTest with the parameter /noisolation my tests fail, but without it they pass.
If I run MSTest without the parameter for the first time a ms office configuration box appears and configures something because my tests depend on excel. this happens only the first time. then the test runs trough without problems.

but if I run my test with the parameter the box doesn't appear and tests fail.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文