MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / writeTestCase

Method writeTestCase

extern/Catch2/catch.hpp:16950–16970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

fileNameTagFunction · 0.85
okToFailMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected