5 ms·
NCrunch: execute tests as you type
- ygra 8y agoI've been using NCrunch at work for a few years now and it's really indispensable, especially if you have tests that run fairly quickly. You get test results and code coverage for your change a few seconds after typing. The only drawback is that I frequently forget to commit changes because the tests use the current editor state instead of what's been saved, so I sometimes forget to save.
- Noumenon72 8y agoIsn't the current editor state usually missing semicolons and stuff? Does it wait till you have no syntax errors to start?
- ygra 8y agoNot always. No, it just shows me build errors as well. Behind the scenes the complete solution is copied to a temporary location and files that are open in an editor are replaced by the current editor state. And then it will effectively try to build and run tests at every keystroke.
- majikandy 8y agoNcrunch is by far and away the best tool I use for .net development. As ubiquitous as resharper, and light years ahead of jetbrains’ continous testing. I can’t believe this is only hitting hacker news now. TDDing is a dream with ncrunch.
- lostmsu 8y agoAFAIK, VS Enterprise edition now has the same feature.
- SideburnsOfDoom 8y agoNCruch is fine when it works, but it can go wrong in subtle ways and generally be more trouble than it's worth. IIRC, This was evident when DI, reflection and assembly scanning is involved, to do with the "shadow copy" of the code and binaries and it getting out of sync or behaving differently to the main.