Using gtest in jenkins

前端 未结 6 1897
情话喂你
情话喂你 2020-12-24 12:35

I successfully run my unit test with google test in Jenkins, but I don\'t know how to show the .xml file generated by gtest. It is said that gtest satisfies the JUnit format

6条回答
  •  情话喂你
    2020-12-24 12:55

    Are you running your test executable with the correct flags (i.e. --gtest_output=xml[:DIRECTORY_PATH\|:FILE_PATH])?

    From the --help output:

    --gtest_output=xml[:DIRECTORY_PATH\|:FILE_PATH] Generate an XML report in the given directory or with the given file name. FILE_PATH defaults to test_details.xml.

提交回复
热议问题