VS.Net 单元测试可以在 IDE 之外运行吗?
有没有办法可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您可能正在寻找 [MSTest]( http://msdn.microsoft.com/en-us/library/ms182486(VS.80).aspx)
要在特定容器中运行所有测试,您可以在命令行执行类似以下操作:
[.NET 2.0 的 MSTest 命令行选项](http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx)
.NET 3.5 的 MSTest 命令行选项
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 Command Line Options for .NET 2.0](http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx)
MSTest Command Line Options for .NET 3.5