TFS Build Extensions Help (v1.0.0.6) |
TfsBuildExtensions.Activities.CodeQuality Namespace |
Send Feedback |
Classes
Class | Description | |
---|---|---|
CodeMetrics |
Activity for processing code metrics using the Visual Studio Code Metrics PowerTool 10.0
(http://www.microsoft.com/downloads/en/details.aspx?FamilyID=edd1dfb0-b9fe-4e90-b6a6-5ed6f6f6e615)
ExamplesCopyXML <!-- Run Code Metrics for SampleApp.exe and SampleLibrary.dll --> <tac:CodeMetrics FailBuildOnError="{x:Null}" TreatWarningsAsErrors="{x:Null}" BinariesDirectory="[BinariesDirectory]" CyclomaticComplexityErrorTreshold="15" CyclomaticComplexityWarningTreshold="10" FilesToProcess="[New List(Of String)(New String() {"SampleApp.exe", "SampleLibrary.dll"})]" GeneratedFileName="Metrics.xml" LogExceptionStack="True" MaintainabilityIndexErrorTreshold="40" MaintainabilityIndexWarningTreshold="90" /> |
|
NUnit |
Executes Test Cases using NUnit (Tested using v2.5.7)
ExamplesCopyXML <!-- Run NUnit on all binaries (*.dll) for the the current configuration/platform--> <Sequence> <Sequence.Variables> <Variable x:TypeArguments="scg2:IEnumerable(x:String)" Name="NUnitTestAssemblies" /> <Variable x:TypeArguments="x:Int32" Name="Total" /> <Variable x:TypeArguments="x:Int32" Name="Errors" /> </Sequence.Variables> <mtbwa:FindMatchingFiles DisplayName="Find NUnitTest assemblies" MatchPattern="[String.Format("{0}\\**.dll", BinariesDirectory)]" Result="[NUnitTestAssemblies]" /> <tan:NUnit PublishTestResults="True" Flavor="[platformConfiguration.Configuration]" Platform="[platformConfiguration.Platform]" Configuration="{x:Null}" Domain="{x:Null}" ErrorOutputFile="{x:Null}" ExcludeCategory="{x:Null}" FailBuildOnError="{x:Null}" Failures="{x:Null}" Framework="{x:Null}" Ignored="{x:Null}" IncludeCategory="{x:Null}" Inconclusive="{x:Null}" Invalid="{x:Null}" Labels="{x:Null}" NoShadow="{x:Null}" NoThread="{x:Null}" NotRun="{x:Null}" OutputFile="{x:Null}" Process="{x:Null}" Run="{x:Null}" Skipped="{x:Null}" TestTimeout="{x:Null}" TimeTaken="{x:Null}" TreatWarningsAsErrors="{x:Null}" Use32Bit="{x:Null}" Assemblies="[NUnitTestAssemblies]" Errors="[Errors]" LogExceptionStack="True" OutputXmlFile="NUnitResults.xml" ToolPath="C:\Program Files (x86)\NUnit 2.5.10\bin\net-2.0\" Total="[Total]" Version="2.5.7" /> </Sequence> |
|
StyleCop |
Wraps the StyleCopConsole class to provide a mechanism for scanning files for StyleCop compliance.
|