How to trigger check-in tests and code analysis?

Sep 15, 2009 at 6:59 PM

How could I configure TFS Check-in Validation Tool so that, if the pre-check-in build is successful, the check-in tests (some VS unit tests) will be triggered to run and the code change won't be checked in if any of the tests fails?

Furthermore, how to configure the tool to run code analysis on the compiled binaries and get the report?

Coordinator
Sep 17, 2009 at 6:07 AM

If your build definition is configured to run tests and perform code analysis, then those will run as usual after the build of the binaries completes. The tool merely performs verification against the code by injecting your pending changes into the build process (by unshelving them after getting latest). You do not need to do anything in the tool to configure that. You simply need to configure your build definition's build script (TFSBuild.proj or any other scripts you might have created).