Pages

Wednesday, April 21, 2010

Code Analysis and Code Coverage

Code analysis analyzes manages the managed code and reports information about the assemblies, such as violations of the programming and design rules set forth in the Microsoft .NET Framework

The analysis represents the checks it performs during an analysis as warning messages which identify any relevant programming and design issues and, when it is possible, supply information about how to fix the problem.

It is good practice to make sure to follow run code analysis as part of check-in policy.

Code coverage analysis is a process for developers. Its main mission is to find areas of a program not exercised by a set of test cases. This does functional testing which compares test program behavior against a requirements specification.

So, we can build an application to specify what projects to build, what triggers a build to run, what automated tests to run, and where to deploy the output. After the build runs, data about the build results is stored in the warehouse, where it is available to view through build reports.

With Team Foundation Build, you can create build definitions to automate compiling applications, running associated tests, performing code analysis, doing code coverage, releasing continuous builds, and publishing build reports.

No comments:

Post a Comment