| 16923 | } |
| 16924 | |
| 16925 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 16926 | TestCaseStats const& stats = testCaseNode.value; |
| 16927 | |
| 16928 | // All test cases have exactly one section - which represents the |
| 16929 | // test case itself. That section may have 0-n nested sections |
| 16930 | assert( testCaseNode.children.size() == 1 ); |
| 16931 | SectionNode const& rootSection = *testCaseNode.children.front(); |
| 16932 | |
| 16933 | std::string className = stats.testInfo.className; |
| 16934 | |
| 16935 | if( className.empty() ) { |
| 16936 | className = fileNameTag(stats.testInfo.tags); |
| 16937 | if ( className.empty() ) |
| 16938 | className = "global"; |
| 16939 | } |
| 16940 | |
| 16941 | if ( !m_config->name().empty() ) |
| 16942 | className = m_config->name() + "." + className; |
| 16943 | |
| 16944 | writeSection( className, "", rootSection ); |
| 16945 | } |
| 16946 | |
| 16947 | void JunitReporter::writeSection( std::string const& className, |
| 16948 | std::string const& rootName, |
nothing calls this directly
no test coverage detected