Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio's testing tools compared to third-party tools

How do Visual Studio's testing tools compare to third-party frameworks like NUnit? Are there any significant differences?

like image 787
sourcenouveau Avatar asked Feb 11 '26 20:02

sourcenouveau


1 Answers

For me MsTest (comparing to MBUnit, NUnit and XUnit.net) is sufficient in terms of features.

The integrated runner is Ok, it works faster than Resharper's runner and produces better output (IMHO), however, left-clicking on unit test item in the runner gets you to the output instead of the unit-test source, which is very non-intuitive and annoying.

My biggest problem with MsTest currently is that it drops all binaries and other deployment items for the test session into a single folder. This is really bad if you have multiple test projects in your solutions with, say a different Spring.Config in each project.

--UPDATE--

A year after I wrote this answer, I'm convinced MsTest is NOT the way to go, not for new projects. The biggest problem with it is lack of support for inheritance for the Test classes' TestInitialize methods. Plus, MsTest requires you to have Visual Studio installed on the build server!

like image 60
Stop Putin Stop War Avatar answered Feb 13 '26 17:02

Stop Putin Stop War



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!