.NET Applications Unit Testing

Applies to TestComplete 15.40, last modified on March 25, 2022

Unit testing implies testing a small part of the application, that may be anything from a single function to an entire library. The most common approach to perform unit testing consists in writing a small application (it is called a “driver” or “harness”), that exercises this part and reports the result. For detailed information see Integration With Unit Testing Frameworks - Overview.

TestComplete allows you to manage unit tests when testing your application. Unit Testing project items can have several subitems that each have their own editor that allow you to specify settings of the desired unit test. To be able to test your application with MSTest or NUnit, you need a license for TestComplete Desktop module and the appropriate plugins must be enabled in TestComplete (the plugins are installed and enabled automatically). For more information, see Integration With Unit Testing Frameworks - Requirements. If the plugins are disabled you can create unit tests of your .NET applications using TCUnitTests project item.

The following topics provide more information about unit testing of .NET applications:

TestComplete Unit Tests - .NET Applications

Describes how to create unit tests embedded into your .NET applications and how to execute these tests using TestComplete.

Running NUnit Tests and Selenium Tests Created With NUnit

Provides information on how to call NUnit tests from TestComplete.

Running MSTest Unit Tests

Provides information on how to call MSTest tests from TestComplete.

See Also

Requirements for Testing .NET Applications
Integration With Unit Testing Frameworks - Overview
Unit Testing Samples

Highlight search results