diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-10-24 20:10:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-13 07:13:17 +0100 |
commit | 019588f30792132d9eca5dab11278547b287804e (patch) | |
tree | 87ef85ac726dac5235e13f45e28a811611555035 /src/testlib/qxmltestlogger_p.h | |
parent | 19be46414ae68c619b94f2fdebd21192898d65fd (diff) |
Testlib: Add test duration to xml output
[ChangeLog][QtTest] Added test duration to xml output.
When running tests with xml output a new tag of the form
<duration msecs="123"/> is added to each test function and the test as a
whole.
Change-Id: Ibc4db066b6acf5fac6c578f5e5ca5ce4b5d8ea8e
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src/testlib/qxmltestlogger_p.h')
-rw-r--r-- | src/testlib/qxmltestlogger_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testlib/qxmltestlogger_p.h b/src/testlib/qxmltestlogger_p.h index ba0185a2b3..65699af3ad 100644 --- a/src/testlib/qxmltestlogger_p.h +++ b/src/testlib/qxmltestlogger_p.h @@ -55,6 +55,7 @@ #include <QtTest/private/qabstracttestlogger_p.h> +#include <QtCore/qelapsedtimer.h> QT_BEGIN_NAMESPACE @@ -86,6 +87,8 @@ public: private: XmlMode xmlmode; + QElapsedTimer m_functionTime; + QElapsedTimer m_totalTime; }; QT_END_NAMESPACE |