added new timing related command line options

2 new timing related command line options have been added:
- performance-timings [-p]: print out performance timings per test case
and group
- performance-timings-threshold [-q <secs>]: print out only the timings
exceeding this given threshold value
This commit is contained in:
Konstantin Baumann
2013-07-23 17:11:43 +02:00
parent 4e7b104f36
commit cdbcd6aa5e
5 changed files with 36 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ namespace Catch {
private:
static void OutputTestSuites( XmlWriter& xml, AccumTestRunStats const& stats ) {
xml.startElement( "testsuites" );
xml.writeAttribute( "name", stats.testRun.runInfo.name );
xml.writeAttribute( "time", stats.testRun.timeSecs );
std::vector<AccumTestGroupStats>::const_iterator it = stats.testGroups.begin();