Open satishsingh0077 opened 2 years ago
Here is another example:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="3" failures="0" disabled="0" errors="0" time="0" timestamp="2022-05-13T17:38:54.980" name="AllTests">
<testsuite name="MyTestSuite" tests="3" failures="0" disabled="0" skipped="1" errors="0" time="0" timestamp="2022-05-13T17:38:54.980">
<testcase name="Test1" status="run" result="skipped" time="0" timestamp="2022-05-13T17:38:54.980" classname="MyTestSuite">
<skipped message="tests/gtest_demo/fib_test.cc:10
"><![CDATA[tests/gtest_demo/fib_test.cc:10
]]></skipped>
</testcase>
<testcase name="Test2" status="run" result="completed" time="0" timestamp="2022-05-13T17:38:54.981" classname="MyTestSuite" />
<testcase name="Test3" status="run" result="completed" time="0" timestamp="2022-05-13T17:38:54.981" classname="MyTestSuite" />
</testsuite>
</testsuites>
Notice that testsuite
tag has skipped
but testsuites
does not.
This is the example that I ran:
TEST(MyTestSuite, Test1) {
::testing::GTEST_FLAG(output) = "xml:out.xml";
GTEST_SKIP();
EXPECT_TRUE(1 == 1);
}
TEST(MyTestSuite, Test2) {
EXPECT_TRUE(1 == 1);
}
TEST(MyTestSuite, Test3) {
EXPECT_TRUE(1 == 1);
}
Is there any update on this issue?
I am using gtest version
V1.11.0
I have disabled few tests and Skipped few tests. This is working fine and i can see the tests being disabled and skipped in the teminal log. The problem is when i am generating the xml file from the test.
--gtest_output=xml:/data/TestReport.xml
The generated XML `<?xml version="1.0" encoding="UTF-8"?>