Nunit 和 NCover 是否有 TFS 入住政策?
我想强制我的用户运行单元测试和代码覆盖率, 但我们使用的是Nunit和NCover,而不是MS Team系统单元测试\覆盖框架。
我该怎么办呢?有匹配的入住政策吗?
谢谢
I would like to enforce my users to run unit tests and code coverage,
but we are using Nunit and NCover, not MS Team system unit test\ coverage framework.
How canI do it? Is there a matching check-in policy?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MSTest 策略的工作原理是检查自上次签出以来是否已创建 TestResults 文件夹,以及 TestResults 是否包含要检查的特定测试列表。
在执行 NUnit 时,您实际上没有办法检查这一点,因为 NUnit 在测试运行后不会留下任何工件,这意味着执行类似于 MSTest 检查的操作会有点困难。
The MSTest policy works by checking that there is a TestResults folder that has been created since the last checkout, and that the TestResults includes the specific test list to check.
You don't really have a way to check this when doing NUnit, since NUnit doesn't leave any artifacts behind after a test run, which means doing something similar to the MSTest check is going to be a little hard.