| 16092 | } |
| 16093 | |
| 16094 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 16095 | TestCaseStats const& stats = testCaseNode.value; |
| 16096 | |
| 16097 | // All test cases have exactly one section - which represents the |
| 16098 | // test case itself. That section may have 0-n nested sections |
| 16099 | assert( testCaseNode.children.size() == 1 ); |
| 16100 | SectionNode const& rootSection = *testCaseNode.children.front(); |
| 16101 | |
| 16102 | std::string className = stats.testInfo.className; |
| 16103 | |
| 16104 | if( className.empty() ) { |
| 16105 | className = fileNameTag(stats.testInfo.tags); |
| 16106 | if ( className.empty() ) |
| 16107 | className = "global"; |
| 16108 | } |
| 16109 | |
| 16110 | if ( !m_config->name().empty() ) |
| 16111 | className = m_config->name() + "." + className; |
| 16112 | |
| 16113 | writeSection( className, "", rootSection ); |
| 16114 | } |
| 16115 | |
| 16116 | void JunitReporter::writeSection( std::string const& className, |
| 16117 | std::string const& rootName, |
nothing calls this directly
no test coverage detected