How to: Create and Configure Test Projects for Automated Tests
Visual Studio 2012 includes the following test project types:
Unit Test Project – Can include MSTest based unit tests, third-party unit tests, ordered tests, and generic tests. For more information, see:
Coded UI Test Project – Can include the test types listed for Unit Test Project above, and coded UI tests. For more information, see:
Web Performance and Load Test Project – Can include Web performance tests and load tests. For more information, see:
Note
You can use test project created in Visual Studio 2010. For more information, see Upgrading Tests from Earlier Versions of Visual Studio.
Requirements
- Visual Studio Ultimate, Visual Studio Premium
Create a test project by using the Add New Project dialog box
To create a test project by using the Add New Project dialog box
On the File menu, point to New and then choose Project.
-or-
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.
Expanded a language node, for example, Visual Basic and choose Test.
Under Templates, choose either Coded UI Test Project, Unit Test Project, or Web Performance and Load Test Project.
(Optional) Change the name or location of the project that you are about to add.
Choose OK.
The test project is added to your solution.