Use "analyse" to generate XML and HTML reports Follow
Is there a way to create both the XML *and* HTML reports when running the "analyse" command?
I tried it with the following config file, and it only produces the HTML report.
<AnalyseParams>
<Executable>C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe</Executable>
<Arguments>/testcontainer:.\MyTests.dll</Arguments>
<WorkingDir>C:\Temp</WorkingDir>
<Output>dotCoverOutput.xml</Output>
<ReportType>XML</ReportType>
<Output>dotCoverOutput.html</Output>
<ReportType>HTML</ReportType>
</AnalyseParams>
I know this can be done in two other ways:
- Running the analyse command twice
- Running dotCover in three steps (cover, report to XML, report to HTML) and then deleting the snapshot file
I'm not going to use option 1 becuase this will take too long.
I'm most likely going to go with option 2 if there is no way to generate two reports with a single analyse command.
Please sign in to leave a comment.
Hello Jack,
It is not possible to generate two reports at once with the analyse command.
You're right, option 2 will fit your requirements in the best way.