Archive

Posts Tagged ‘MSTest’

Running unit tests from a command line

February 23rd, 2019 No comments

VSTest.Console.exe should be used from .NET Framework 4.6.1 instead of MSTest.exe to run unit tests from command line.

MSTest.exe brings “No tests to execute” error message.

More info:

MSTest V2 (the Microsoft Test Framework) is now open source!

March 29th, 2017 No comments

Microsoft Test Framework “MSTest V2”

Welcome to the “MSTest V2” repository, the evolution of the Microsoft Test Framework and Adapter. “MSTest V2” is currently in use in a variety of scenarios including:

  • in the relevant in-box unit test project templates (Visual Studio 2017 Preview 4 onwards)
  • in the Create Unit Tests wizard (Visual Studio 2017 Preview 4 onwards)
  • in the Create IntelliTest wizard (Visual Studio 2017 Preview 4 onwards)

This is a fully supported, open source and cross-platform implementation of the MSTest test framework with which to write tests targeting .NET Framework, .NET Core and ASP.NET Core on Windows, Linux, and Mac. You can read more about MSTest V2 here.

GitHub

Tags: ,

run Visual Studio manage and unmanage unit tests from command line

January 28th, 2015 No comments

MSTest is used for Managed C#, C++ Tests and Test Execution Command Line Tool (vstest.console.exe) for unmanaged C++ tests.

MSTest example:

>"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe" /testcontainer:managed_unitTest.dll /testsettings:mysettings.testsettings

Test Execution Command Line Tool example:

>"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" unmanaged_unitTest.dll /Settings:mysettings.testsettings /platform:x86

 

Additional links: