I am new to using Google test framework for unit testing and am intending to generate an XML report of the tests or the command output as a report (I could just print it obviously). I have read up on Generate XML Report , but haven't been able to understand clearly on how to go about generating the report. Any help would be greatly appreciated.
Cheers.
I have referred to v01d's solution and just made a complete and properly framed answer for anyone else who might come across the same question.
Setting the Environment Variable:
Click to Add a new variable and set the properties in the following way:
Variable: GTEST_OUTPUT
Value: xml:\home\user\XML_Report.xml
Restart your MSVC++ and run your program again. You should be able to find your XML Report in the corresponding folder as mentioned in the 'Value' property specified by you. Furthermore, you can even convert the xml report with the help of Microsoft Access into a particular choice of format you want. Just a simple tutorial/example of this is given here: XML Conversion.
Hope this helps!