How to generate HTML reports Permanently deleted user Created March 09, 2011 07:21 hii am able to generate XML reports through Console Runner of DotcoverPlease tell me a way for generating HTML reports through Console Runner
Hello Lokesh,
Assuming you have dotCover 1.1 EAP,
you just need to specify <ReportType>HTML</ReportType> in your ReportParams.
hi
just downloaded the 1.1 version
my Output.xml looks like this
<?xml version="1.0" encoding="utf-8"?>
<CoverageResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<IndexFiles>
<string>C:\BuildAgent\temp\buildTmp\ssc00EF0.tmp</string>
<string>C:\BuildAgent\temp\buildTmp\ssc04051.tmp</string>
</IndexFiles>
</CoverageResult>
i mean there are two snapshots
while i am using
<?xml version="1.0" encoding="utf-8"?>
<ReportParams>
<Source>Output.xml</Source>
<Output>Results.html</Output>
<ReportType>HTML</ReportType>
</ReportParams>
i am not getting the full results in the html file
PLz find the file attached
html file is not coming correctly
there is some blank space on the right and
the categorys i have boxed in blue are children of same parent, they shown wrongly
Attachment(s):
codecoverage.JPG
Hello Lokesh,
In your case before generating report you should merge results of coverage session (console runner "merge" command)
Or alternatively you can call "analyse" command which is a shortcut for "cover", "merge" and "report" commands.
Could you please tell what is your web-browser version?
hi.. i have tried it to open in IE 8 but it takes lot of time..
so i am opening it in Chrome
and this time i have used the anaylse option and set the ReportType Tag to HTML...
but resutls hav been similar....
Could you please specify your configuration xml file, console command you use for starting coverage and console output you get?
Thanks.
hi i am running the msbuild runner through teamcity the Final log is as follows :
Following is the Msbuild Target used :
<PropertyGroup>
<DotCoverPath>C:\Program Files\JetBrains\dotCover\v1.1</DotCoverPath>
<AnalyseFile>C:\CI Build\Products\transactionSHUTTLE\Code\analyse.xml</AnalyseFile>
<OutputXmlPath>C:\CI Build\Products\transactionSHUTTLE\Code\Output.xml</OutputXmlPath>
</PropertyGroup>
<Exec Command=""$(DotCoverPath)\Bin\dotCover.exe" a "$(AnalyseFile)"" ContinueOnError="true"></Exec>
<Message Text="##teamcity[importData type='dotNetCoverage' tool='dotcover' path='$(OutputXmlPath)']"></Message>
</Target>
Following is the Analyse.xml :
<AnalyseParams>
<Executable>C:\Program Files\Gallio\bin\Gallio.Echo.exe</Executable>
<Arguments>"C:\CI Build\Products\transactionSHUTTLE\Code\ShuttleEngine.Test\bin\Debug\ShuttleEngine.Test.dll"</Arguments>
<WorkingDir>C:\CI Build\Products\transactionSHUTTLE\Code\ShuttleEngine.Test\bin\Debug</WorkingDir>
<Output>C:\CI Build\Products\transactionSHUTTLE\Code\Output.html</Output>
<ReportType>HTML</ReportType>
<IncludeFilters>
<FilterEntry>
<ModuleMask>ShuttleEngine</ModuleMask>
<ClassMask>*</ClassMask>
<FunctionMask>*</FunctionMask>
</FilterEntry>
</IncludeFilters>
<ExcludeFilters>
</ExcludeFilters>
</Filters>
</AnalyseParams>
From the above configuration xml file, i get the html as i had attached before... the hierarchy is correct if report type is XML