25 #include <gtest/gtest.h>
26 #include <gmock/gmock.h>
28 #define GTEST_REPORT_DIRECTORY "/tmp/Gtest_Report"
29 #define GTEST_REPORT_FILEPATH "dca_gtest_report.xml"
30 #define GTEST_REPORT_FILEPATH_SIZE 128
32 GTEST_API_
int main(
int argc,
char *argv[])
34 char filePath[GTEST_REPORT_FILEPATH_SIZE] = {0};
35 snprintf(filePath, GTEST_REPORT_FILEPATH_SIZE,
"xml:%s/%s",
36 GTEST_REPORT_DIRECTORY,GTEST_REPORT_FILEPATH);
37 ::testing::GTEST_FLAG(output) = filePath;
38 ::testing::InitGoogleMock(&argc, argv);
39 return RUN_ALL_TESTS();