| 137 | |
| 138 | |
| 139 | void |
| 140 | XmlOutputter::addStatistics( XmlElement *rootNode ) |
| 141 | { |
| 142 | XmlElement *statisticsElement = new XmlElement( "Statistics" ); |
| 143 | rootNode->addElement( statisticsElement ); |
| 144 | statisticsElement->addElement( new XmlElement( "Tests", m_result->runTests() ) ); |
| 145 | statisticsElement->addElement( new XmlElement( "FailuresTotal", |
| 146 | m_result->testFailuresTotal() ) ); |
| 147 | statisticsElement->addElement( new XmlElement( "Errors", m_result->testErrors() ) ); |
| 148 | statisticsElement->addElement( new XmlElement( "Failures", m_result->testFailures() ) ); |
| 149 | |
| 150 | for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) |
| 151 | (*it)->statisticsAdded( m_xml, statisticsElement ); |
| 152 | } |
| 153 | |
| 154 | |
| 155 | void |
nothing calls this directly
no test coverage detected