Software Testing Tools in Visual Studio

This presentation shows how you can take advantage of the most recent additional to the unit testing tools in Visual Studio to build more reliable apps. Besides Visual Studio own tools, you can also run unit tests in Visual Studio by using third-party test frameworks such as NUnit, Boost, or Google C++ Testing Framework, depending on your programming language.

The unit test tools of Visual Studio include:

  • Test Explorer — Run unit tests and see their results in Test Explorer. You can use any unit test framework, including a third-party framework, that has an adapter for Test Explorer.
  • Microsoft unit test framework for managed code—The Microsoft unit test framework for managed code is installed with Visual Studio and provides a framework for testing .NET code.
  • Microsoft Native Unit Test Framework — The Microsoft Native Unit Test Framework for C++ is installed as part of the Desktop development with C++ workload. It provides a framework for testing native code. Google Test, Boost.Test, and CTest frameworks are also included, and third-party adapters are available for additional test frameworks. For more information, see Write unit tests for C/C++.
  • Code coverage tools — You can determine the amount of product code that your unit tests exercise from one command in Test Explorer.
  • Microsoft Fakes isolation framework — The Microsoft Fakes isolation framework can create substitute classes and methods for production and system .NET code that create dependencies in the code under test. By implementing the fake delegates for a function, you control the behavior and output of the dependency object.

In this video, you will learn how to:
* Easily switch between code and Test Explorer
* Run a test until it fails or it runs a number of times
* Improved code coverage performance and reports
* Debug tests that are failing unexpectedly
* Include platform logs when running tests
* Run tests in the background while coding using Live Unit Test

Video producer: https://www.visualstudio.com/