0

Use "analyse" to generate XML and HTML reports

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.

1 comment

Please sign in to leave a comment.