Wednesday, May 21, 2008

TeamBuild and Integration Testing

Grant Holliday - TFS Build: Running Integration Unit Tests

"If you’re doing a deployment out to a test server as part of your Continuous Integration build process, you may have some unit tests (or web/load tests) to run after the deployment. Since these tests are testing more than just an assembly, they can be considered integration tests.

This can easily be accomplished by modifying your TFSBuild.proj script. Start by overriding the AfterDropBuild or similar MSBuild target and calling the <TestToolsTask> with the correct parameters.

First of all, you’ll need to define the tests that you want to run. The simplest way is to create a Test List called “Integration Tests” that gets saved in your test metadata file (*.vsmdi).

..."

Grant provides some nice tips for adding integration testing as part of your TeamBuild process

No comments: