We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

How to: Create and Configure Test Projects for Automated Tests

Visual Studio 2012 includes the following test project types:

Note Note

You can use test project created in Visual Studio 2010. For more information, see Upgrading Tests from Earlier Versions of Visual Studio.


  • Visual Studio Ultimate, Visual Studio Premium

To create a test project by using the Add New Project dialog box

  1. On the File menu, point to New and then choose Project.


    In Solution Explorer, open the shortcut menu for the solution, point to Add and then choose New Project.

    The Add New Project dialog box is displayed.

  2. Expanded a language node, for example, Visual Basic and choose Test.

  3. Under Templates, choose either Coded UI Test Project, Unit Test Project, or Web Performance and Load Test Project.

  4. (Optional) Change the name or location of the project that you are about to add.

  5. Choose OK.

The test project is added to your solution.