googletest
googletest copied to clipboard
Question about generate XML report
how to generate a XML file consisting all test cases
- I've tried
export GTEST_OUTPUT=xxx.xml, but the xml file was overwritten - if not specify xml file name, there are many XML files generated.
Can you be more specific about what you are trying to do? Are you running multiple tests binaries? Please tell us more about what you are doing and what you expect to see.
Can you be more specific about what you are trying to do? Are you running multiple tests binaries? Please tell us more about what you are doing and what you expect to see.
Ok I have integrated gtest in my cmake probject, built many unittest cases. Then I have multiple tests binaries, in general I run ctest then all test cases will run without generating any report. I want to generate one XML file with all reports of all testcases in it. Unfortunately, I can use ./somecase --getst_output="xml" to generate a XML file with only this case; and I have tried to export the Macro GTEST_OUTPUT=xxx.xml, the result will be overwritten.
@dlc1994 If you use
GTEST_OUTPUT="xml:$PWD/" it will generate multiple *.xml files without overriding.