BT

Ready for InfoQ 3.0? Try the new design and let us know what you think!

Microsoft to Offer Live Unit Testing in Visual Studio 2017

| by Jonathan Allen Follow 655 Followers on Feb 07, 2017. Estimated reading time: 1 minute |

With more features being pushed down into less expensive versions, Microsoft is always looking for ways to justify the hefty price tag for Visual Studio Enterprise Edition. New for this year, the headline feature is “live unit testing”.

For a while now Visual Studio has had the option to automatically run unit tests after each build. Live Unit Testing takes the next step and runs your tests as you type. You don’t even have to save the file; as soon as you change the code the unit tests start running.

Live code coverage is provided, with indicators for pass/fail/not-tested. An overlay on the icon indicates that the test is being re-run. Clicking on the icon will list the associated tests and the mouse-over will show the stack trace.

VS Live Unit Testing supports NUnit, xUnit, and MSTest, although you’ll need to install preview versions of the latter two .NET Core, Universal Windows Apps and Xamarin are not currently supported. Manish Jayaswal of Microsoft writes, “Adding support for .NET Core is in the roadmap. However, we do not have a timeline for it yet.”

According to Tanner Gooding, also from Microsoft, part of the reason for the delay is that the PDB symbols file for .NET Core has changed. While originally designed for Windows only, the new cross-platform PDB format had undergone major revisions.

If this feature sounds familiar, it is because Microsoft isn’t the first one to offer it. NCrunch by Remco Software Ltd. essentially works the same way. But being a much older product, NCrunch has had time to refine its IDE integration, and detailed error analysis is just a click or two away. NCrunch also integrates distributed processing and performance metrics, which are separate tools in Visual Studio Enterprise.

While a true price comparison can’t be made, NCrunch is also more affordable for the budget conscious developer, with prices starting at $159 USD for the individual and $289 USD/person for a company license with a discount for upgrading previous versions.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Java alternative by Chris Roberts

If you're in the Java ecosystem instead, Inifinitest is an open-source plugin for Eclipse and IntelliJ that does the same thing: infinitest.github.io

Just get NCrunch and forget VS' Live Testing by Piotr Owsiak

Yeah, basically NCrunch totally crushes VS Live Testing! Just get NCrunch and you'll be a much happier developer than you are now. You'll really fall in love with the workflow if you are doing any testing.
Note that I'm not affiliated to NCrunch in any way other than being an incredibly happy NCrunch user.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

2 Discuss
BT