| 16948 | } |
| 16949 | |
| 16950 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 16951 | TestCaseStats const& stats = testCaseNode.value; |
| 16952 | |
| 16953 | // All test cases have exactly one section - which represents the |
| 16954 | // test case itself. That section may have 0-n nested sections |
| 16955 | assert( testCaseNode.children.size() == 1 ); |
| 16956 | SectionNode const& rootSection = *testCaseNode.children.front(); |
| 16957 | |
| 16958 | std::string className = stats.testInfo.className; |
| 16959 | |
| 16960 | if( className.empty() ) { |
| 16961 | className = fileNameTag(stats.testInfo.tags); |
| 16962 | if ( className.empty() ) |
| 16963 | className = "global"; |
| 16964 | } |
| 16965 | |
| 16966 | if ( !m_config->name().empty() ) |
| 16967 | className = m_config->name() + "." + className; |
| 16968 | |
| 16969 | writeSection( className, "", rootSection, stats.testInfo.okToFail() ); |
| 16970 | } |
| 16971 | |
| 16972 | void JunitReporter::writeSection( std::string const& className, |
| 16973 | std::string const& rootName, |
nothing calls this directly
no test coverage detected