Live Unit Testing with Inline Code Coverage

Answered

Hello,

I think a great feature addition would be a live unit test runner with inline code coverage information. Visual Studio has a plugin available called NCrunch, which creates the (in my opinion) epitome of the unit testing experience. As you write or change code, so long as you have a unit test covering the code you're writing, it will detect changes and re-run the tests covering the code being written. In addition, in the left side of the editor where you would place break points, it will show you a visual indicator of whether or not lines are being covered by unit tests. In addition, if you have a test that fails, it will show you which line the test failed on, and what the reason for the failure was, such as an exception. This helps with development, but also creates the ideal environment for writing unit tests and effectively reaching 100% coverage over functional code. I think this would complete my Rider coding experience, and is probably the only feature I'm longing for in Rider. Having live unit tests run in a separate test running window is fine and all, but being able to see what lines I have covered as I write code, and which code throws exceptions in certain cases is invaluable as someone who writes unit tests. I find the traditional unit testing experience too cumbersome, and only a tool like NCrunch brings it to a more natural experience for me. Please add this/these features! 

4
2 comments

Jonathan,

Thanks for your feedback! We are working on this feature right now, it is planned for v2018.2. Please watch RIDER-3824 for further updates.

0
Avatar
Permanently deleted user

Thanks for getting back to me. Eagerly awaiting this update!

0

Please sign in to leave a comment.