TFS Build customization: Validate Code and Design Quality as you build.

Validating the quality of the code and the design of the application is as important as creating the build.

TFS 2010 and onwards, provide 2 ways to integrate 3rd party tools with build process for validating the build quality:

–>Build Activity

–>Custom build event

For first option, since the TFS build is now WWF based, build template is modified to configure parameters. These parameters work as input for validating the metrics. 3rd party tool use these parameters and generate a report that is again consumed by build process. Based on the report the final build may be passes or failed.

In custom build event method, Post Build Event of project is modified to call the 3rd party tool. If the build pass the metrics test of 3rd party tool, the final build dll are copied to a particular location, signifying the build dll has passed the metric test.

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s