For specific features and bug fixes in each version of MSTest V2, please see the release notes.
Listed are the difference in behaviour of MSTest V2 w.r.t MSTest V1 :
- MSTest V2 sets the direction for how we intend to evolve the MSTest framework [more...].
- MSTest V2 is "open source" [more...].
- Uniform app-platform support – this is a converged implementation that offers uniform app-platform support across .NET Framework, .NET Core and ASP.NET Core, and UWP [more...].
- The implementation is fully cross platform (Windows, Linux, Mac) [more...].
- MSTest V2 support targeting .NET Framework 4.5.0+, .NET Core 1.0+ (Universal Windows Apps 10+, DNX Core 5+), and ASP.NET Core 1.0+
- Provides a uniform, single end-user extensibility mechanism. [more...].
- Delivered as a NuGet package [more...].
- Provides a uniform DataRow support, for all MSTest based test projects [more...].
- Provides the ability to place the TestCategory attribute at the level of a class or assembly [more...].
- Test methods from base classes defined in another assembly are now discovered and run from the derived Test class. This brings in a consistent behavior with derived test class types. If this behavior is not required for compat reasons it can be changed back using the following runsettings:
<RunSettings>
<MSTest>
<EnableBaseClassTestMethodsFromOtherAssemblies>false</EnableBaseClassTestMethodsFromOtherAssemblies>
</MSTest>
</RunSettings>
- The TestCleanup method on a TestClass is invoked even if its corresponding TestInitialize method fails. See #250 for details.
- The time taken by
AssemblyInitialize
andClassInitialize
are not considered as part of a tests duration thereby limiting their impact on a test timing out. - Test which are not runnable can be configured to be marked as failed via MapNotRunnableToFailed tag which is part of the adapter node in the runsettings.
<RunSettings>
<MSTest>
<MapNotRunnableToFailed>true</MapNotRunnableToFailed>
</MSTest>
</RunSettings>
Here are the features that are not supported:
- Tests cannot be included into an "Ordered Test".
- The adapter does not support being configured via a .testsettings file.
- The adapter does not support test lists specified as a .vsmdi file.
- The "Coded UI Test Project", and the "Web Performance and Load Test Project" types are not supported.
- Association with a testcase item in TFS is not supported.