| 16592 | } |
| 16593 | |
| 16594 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 16595 | TestCaseStats const& stats = testCaseNode.value; |
| 16596 | |
| 16597 | // All test cases have exactly one section - which represents the |
| 16598 | // test case itself. That section may have 0-n nested sections |
| 16599 | assert( testCaseNode.children.size() == 1 ); |
| 16600 | SectionNode const& rootSection = *testCaseNode.children.front(); |
| 16601 | |
| 16602 | std::string className = stats.testInfo.className; |
| 16603 | |
| 16604 | if( className.empty() ) { |
| 16605 | className = fileNameTag(stats.testInfo.tags); |
| 16606 | if ( className.empty() ) |
| 16607 | className = "global"; |
| 16608 | } |
| 16609 | |
| 16610 | if ( !m_config->name().empty() ) |
| 16611 | className = m_config->name() + "." + className; |
| 16612 | |
| 16613 | writeSection( className, "", rootSection ); |
| 16614 | } |
| 16615 | |
| 16616 | void JunitReporter::writeSection( std::string const& className, |
| 16617 | std::string const& rootName, |
nothing calls this directly
no test coverage detected