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