Share via


Run tests in your build

Make sure that your build is running the right unit tests.

  1. Edit your build definition.

    Edit build definition from the team explorer

  2. Edit the automated tests entry to select which unit tests to run.

    Run unit tests as part of the build process

  3. Here you can add, edit or remove your tests.

    Add, edit or remove criteria for automated tests to run

    These tests will now run as part of the build process.

Q&A

Q:Can I limit which unit tests are run based on categories or priorities?

A:Yes. See how to do this.

Q:Can I run tests from a different unit test framework in my builds?

A:Yes. You can run tests from other unit test frameworks.

  1. If you haven't already, set up the plug-in for your test framework.
  2. Create a folder that contains the custom binaries for your plug-in. (The plug-in package for your framework is a .vsix file. Change the extension to .zip so that you can unzip it.)
  3. Add these assemblies to version control and let the build controller know where to get them.

Try this next

False