VS.Net 单元测试可以在 IDE 之外运行吗?

发布于 2024-07-07 07:17:26 字数 207 浏览 4 评论 0原文

有没有办法可以在 IDE 之外针对已编译的 DLL 运行 UnitTest 项目? 基本上,我们有测试程序来在投入生产之前验证代码。
我不想在 IDE 中运行测试。 我希望将编译后的代码准备好转移到生产环境,并能够在最终副本之前对 .dll 运行最终测试。

是否有某种命令行实用程序可以执行此操作? 只需提供两个 .dll 并获得某种“一切正常”的报告。

Is there a way you can run your UnitTest project against a compiled DLL outside of the IDE? Basically we have testing procedures to validate code before moving into production.
I would not want to run the tests inside the IDE. I would want to have the compiled code ready to move to production and be able to run a final test against the .dll before the final copy.

Is there some kind of Command-Line utility that could do this? Just supply both .dlls and get a "all good" report of some kind.

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

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

发布评论

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

评论(1

把人绕傻吧 2024-07-14 07:17:26

我想您可能正在寻找 [MSTest]( http://msdn.microsoft.com/en-us/library/ms182486(VS.80).aspx)

要在特定容器中运行所有测试,您可以在命令行执行类似以下操作:

MSTest /testcontainer:MyTestProject\bin\debug\MyTestProject.dll

I think you're probably looking for [MSTest](http://msdn.microsoft.com/en-us/library/ms182486(VS.80).aspx)

To run all tests in a specific container, you could do something like the following at a command line:

MSTest /testcontainer:MyTestProject\bin\debug\MyTestProject.dll

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