How to Create a “Hello World” Acceptance Test

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

A “hello world” acceptance test is a simple test that you can use to prove that you can create unit tests and hook them up to your build process.

In order to create a test list to associate with the build you must have either Visual Studio Test Edition or Visual Studio Team Suite installed. In order to run automated tests on the build server you must have either Visual Studio Developer Edition, Visual Studio Test Edition, or Visual Studio Team Suite installed on the build server.

To create a hello world test
  1. On the Test menu, click New Test
  2. Click Unit Test and then click OK.
  3. Enter a name for your test project and then click Create.
  4. Compile your new project.
  5. Check the project into source control.
  6. With your unit test solution still open in Visual Studio, on the Test menu, click Create New Test List...
  7. Specify a test list name in the Create New Test List dialog and then click OK.
  8. In the Test Manager, click on the All Loaded Tests node.
  9. Drag and drop tests from the available tests into your test list node in the tree.
  10. Check the modified unit test project VSMDI file into source control.

The test list you have created is available when you create a new Team Build and can be run automatically as part of the build process.

Additional Resources

Last edited Jul 26, 2007 at 7:57 AM by prashantbansode, version 1

Comments

No comments yet.