This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
vandreykiv/ConvertMSTestReportToXml
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
MSBuild task for convert MSTest coverage report to XML. Usage: <UsingTask TaskName="ConvertVSCoverageToXml" AssemblyFile="$(MSBuildExtensionsPath)\CI.MSBuild.Tasks.dll" /> <Target Name="Coverage" DependsOnTargets="Test"> <ConvertVSCoverageToXml CoverageFiles="$(MSBuildThisFileDirectory)..\..\TestResults\TestResults\In\$(ComputerName)\data.coverage" SymbolsDirectory="$(MSBuildThisFileDirectory)..\..\TestResults\TestResults\Out\" OutputDirectory="$(MSBuildThisFileDirectory)..\..\TestResults\" /> </Target> To convert XML coverage report to EMMA format just add next simple MSBuild task. Copy "msxsl.exe" and "MSTestCoverageToEmma.xsl" from "Convert to Emma" directory to your MSBuild extension directory. <ItemGroup> <Msxsl Include='"$(MSBuildExtensionsPath)\msxsl.exe"'/> <TestCoverageToEmma Include='"$(MSBuildExtensionsPath)\MSTestCoverageToEmma.xsl"'/> </ItemGroup> <UsingTask TaskName="ConvertVSCoverageToXml" AssemblyFile="$(MSBuildExtensionsPath)\CI.MSBuild.Tasks.dll" /> <Target Name="Coverage" DependsOnTargets="Test"> <ConvertVSCoverageToXml CoverageFiles="$(MSBuildThisFileDirectory)..\..\TestResults\TestResults\In\$(ComputerName)\data.coverage" SymbolsDirectory="$(MSBuildThisFileDirectory)..\..\TestResults\TestResults\Out\" OutputDirectory="$(MSBuildThisFileDirectory)..\..\TestResults\" /> <Exec Command="@(Msxsl) $(MSBuildThisFileDirectory)..\..\TestResults\data.xml @(TestCoverageToEmma) -o $(MSBuildThisFileDirectory)..\..\TestResults\coverage.xml" /> </Target>
About
Converts MSTest reports to XML format
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published