1. Create a BVT Test List.
To create a BVT test list in the Test List Editor do the following.
1. In the Test List Editor, click By Test List to display the test list pane.
2. Right-click Lists of Tests and then click New Test List.
This displays the Create New Test List dialog box.
3. Type the name of the test list that will contain your build verification tests; for example, type BVTs.
4. (Optional) Type a description of your BVT test list, and select a location in the test list hierarchy to put the new test list.
5. Click OK.
Your new BVTs test list is created and appears in the test list hierarchy pane.
6. Click All Loaded Tests to display all the tests in your solution.
7. Select the tests that you want to run as your build verification tests and drag them into the new BVTs test list.
8. (Optional) To verify the contents of the test list, click it in the test list hierarchy pane.
This BVTs test list, together with all the test lists in your solution, resides in your solution's test metadata file. Test metadata files have the extension .vsmdi.
2. Check in the BVT
In this procedure, you check in all the files of your solution. This includes the test metadata file of your solution, which contains your test lists and tests. Whenever you add, delete, or reorganize test lists, or change the contents of test lists, your test metadata file is automatically updated to reflect those changes.
To check in the BVT to source control
1. Connect to a Team Foundation Server computer.
2. If your solution is not already in source control, add it to source control.
3. Click View and then click Pending Checkins to display the Pending Checkin window.
4. After the check-in operation is finished, a padlock icon is displayed next to each file in Solution Explorer to indicate its Checked In status.
5. Your checked-in tests are available to the Team Foundation Build feature of Team System. You can now create a build type that contains the tests you want to run in your BVT.
3. Create a Build Type
To create the BVT build type
1. In the Team Explorer window, click your team project.
2. Right-click Team Builds and then click New Team Build Type.
The New Team Build Type Creation Wizard appears.
3. Follow the steps in the New Team Build Type Creation Wizard.
4. When you have finished entering information in the wizard, click Finish.
Your new build type appears in the Team Explorer window under the Team Builds folder.
4. Run the BVT Build Type
To run the BVT using Team Build
1. On the Build menu, click Build {Team Project Name}.
2. The Build {Team Project Name} dialog box is displayed with a list of all existing build types. Make sure your build type is selected.
3. (Optional) Change the build location and directory.
4. Click Build.
