Part 2–Using Traits with different test frameworks in the Unit Test Explorer
Nov 20, 2012Importer
Summary
This post extends the 'Visual Studio Unit Testing Framework' feature thread by detailing the integration of NUnit, xUnit.net, MbUnit, and C++ test frameworks with the Unit Test Explorer's Trait system. It provides step-by-step instructions for adding NUnit and xUnit.net NuGet packages and adapters, demonstrating how to use their respective attributes (Category, Property, Trait) to define test traits. It also covers MbUnit integration and the built-in support for Managed and Native C++ traits. The post highlights the ability to run tests from multiple frameworks concurrently and merge their results in the Test Explorer, and discusses class-based traits support in xUnit.net and upcoming support in NUnit.