1 Replies Last post: Jan 11, 2012 2:33 PM by Ruslan Isakiev  
Jack Ace Newbie 4 posts since
Nov 14, 2011
Currently Being Moderated

Dec 7, 2011 11:58 PM

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.

Ruslan Isakiev JetBrains 189 posts since
Mar 22, 2010
Currently Being Moderated
Jan 11, 2012 2:33 PM in response to: Jack Ace
Re: Use "analyse" to generate XML and HTML reports

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.

More Like This

  • Retrieving data ...