summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestlog_p.h
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@nokia.com>2012-02-02 10:12:21 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-12 23:25:19 +0100
commita6d3983ef6b7affef1d2aa48ed8bf8000a6e4267 (patch)
tree1122d85d2bfed7e2665b500b0e41871bfdeb79d2 /src/testlib/qtestlog_p.h
parent3aacbc1e2bea0855f5a405be0e1577320af784f7 (diff)
CodeCoverage: Handle QTest based subtests.
Set QT_TESTCOCOON_ACTIVE environment variable when the coverage is installed for a test and unset it when the coverage data is saved. Tests that run when QT_TESTCOCOON_ACTIVE is set are subtests and will not be considered as stand-alone tests for the coverage. When a test is run as a subtest its coverage data will not be saved for itself but for the main test it is merged with. Also its status will not be reported since only the status of the main test is expected in the test report, e.g. the test tests/auto/testlib/selftests. Change-Id: Icfdf99300aae18040e1a3441a8af21f68df4c0db Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'src/testlib/qtestlog_p.h')
-rw-r--r--src/testlib/qtestlog_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testlib/qtestlog_p.h b/src/testlib/qtestlog_p.h
index 1fe52367ec..1a9754e460 100644
--- a/src/testlib/qtestlog_p.h
+++ b/src/testlib/qtestlog_p.h
@@ -103,6 +103,9 @@ public:
static void resetCounters();
+ static void setInstalledTestCoverage(bool installed);
+ static bool installedTestCoverage();
+
private:
QTestLog();
~QTestLog();