如何在 .NET 中进行持续测试?
当我进行 java 开发时,我使用 Infinitest 进行持续测试,当我在 .nET 中开发时,我真的很怀念即时反馈。
如何在 C# 和 C# 中进行持续测试? 。网?
编辑:我不是在寻找持续集成,例如 CruiseControl、TeamCity 等。 这是一个与我正在寻找的 IDE 配合使用的即时反馈工具
I'm using Infinitest for continuous testing when I do java development and i really miss the instant feedback when I develop in .nET
How do I do continuous testing in C# & .NET?
EDIT: I'm not looking for continuous integration, like CruiseControl, TeamCity etc.
It's an instant feedback tool that works with your IDE that I'm looking for
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我发现了另一个非常有用的 VisualStudio 扩展:
NCrunch http://www.ncrunch.net/
我真正喜欢它的是,它在您键入时在后台运行代码测试(无需保存/构建),它仅运行受更改代码影响的测试,并且它会自动显示代码中的哪些行通过测试/失败测试涵盖以及未涵盖哪些行。它支持 NUnit、MS Test、Xunit、MbUnit、MSpec :)
I discovered another extension for VisualStudio that is really helpful:
NCrunch http://www.ncrunch.net/
What I really like about it is that it runs the tests of your code in the background while you are typing (no saving/build required), it runs only tests that are influenced by changed code and it automatically shows which lines in your code are covered by passing tests/by failing tests and which lines are not covered. And it supports NUnit, MS Test, Xunit, MbUnit, MSpec :)
如果您使用的是 Visual Studio 2008 或 2010,则应查看扩展Visual Studio 连续测试。
请注意,它不会在您保存时运行测试,而是在每次构建时运行测试。
If you're using Visual Studio 2008 or 2010, you should take a look at the extension Continuous Testing for Visual Studio.
Note that it does not run the tests when you save, but rather on each build.
尽管它确实能做更多的事情,CruiseControl.NET 可以与 NUnit 集成时进行持续测试。
我还发现测试和构建的持续反馈非常有用。
Although it does do more, CruiseControl.NET can do continous testing when it's integrated with NUnit.
I also find the continous feedback of testing and building to be really useful.
我建议使用持续集成服务器,例如 TeamCity。它还为 Visual Studio 提供了一个插件,允许您在 IDE 中构建项目并对其运行单元测试。
I would recommend using a continuous integration server like TeamCity. It also provides a plugin for Visual Studio which allows you to build your project and run unit tests on it from within the IDE.