| 13830 | } |
| 13831 | |
| 13832 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 13833 | TestCaseStats const& stats = testCaseNode.value; |
| 13834 | |
| 13835 | // All test cases have exactly one section - which represents the |
| 13836 | // test case itself. That section may have 0-n nested sections |
| 13837 | assert( testCaseNode.children.size() == 1 ); |
| 13838 | SectionNode const& rootSection = *testCaseNode.children.front(); |
| 13839 | |
| 13840 | std::string className = stats.testInfo.className; |
| 13841 | |
| 13842 | if( className.empty() ) { |
| 13843 | className = fileNameTag(stats.testInfo.tags); |
| 13844 | if ( className.empty() ) |
| 13845 | className = "global"; |
| 13846 | } |
| 13847 | |
| 13848 | if ( !m_config->name().empty() ) |
| 13849 | className = m_config->name() + "." + className; |
| 13850 | |
| 13851 | writeSection( className, "", rootSection ); |
| 13852 | } |
| 13853 | |
| 13854 | void JunitReporter::writeSection( std::string const& className, |
| 13855 | std::string const& rootName, |
nothing calls this directly
no test coverage detected