gtest_discover_tests XML_OUTPUT_DIR not functioning
Its mentioned in gtest topics that --gtest_list_tests overrides all other flags I have created a simple example to print args after using in CMakelists.txt
gtest_discover_tests(
${PROJECT_NAME}
PROPERTIES TIMEOUT 50000
WORKING_DIRECTORY ${BINARY_DIR}/Debug/
XML_OUTPUT_DIR ${BINARY_DIR}/Debug/
)
the args output was ./project.exe --gtest_list_tests and the flag --gtest_output is missing The xml file could be generated by running manually ./project.exe --gtest_output=xml:test.xml
Edited by Nour ElMenshawy