문제

I have been using Google Test for a few months now and I have

--gtest_output=xml:$(TargetDir)\$(SolutionName).unittest.results.$

(Configuration).xml

as command Arguments in the VS2010 Test project. This has been working to output the test results to xml.

I now have been adding in Google Mocks and I have the tests working and Google Mocks working, but now I don't get the test result in a file. How do I get the XML file of the test results and mock results?

I have not been able to find any information on this.

도움이 되었습니까?

해결책

Turns out that one of my mock functions was not returning a valid value and the test application was exiting before the XML file was generated. After I fixed my Unit Test that need this extra setup on the mocked function. The Unit Tests all complete and the XML file is generated.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top