From 94ea7b71320ca409e2d8b1c701e3cc48912ebde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 11 Feb 2015 13:59:46 +0100 Subject: Add XCTest logger backend to QtTestLib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will be active when running test apps through Xcode's 'test' action, and reports QtTestLib test objects and functions to Xcode as XCTest cases. This allows running tests on both iOS Simulator and iOS devices from the command line, through xcodebuild, without relying on any 3rd party tools. It also integrates Qt test failures and passes into the Xcode IDE, which may be useful for closer investigation of test failures. The feature is limited to Xcode 6.x. Change-Id: I33d39edbabdbaebef48d2d0eb7e08a1ffb72c397 Reviewed-by: Tor Arne Vestbø --- src/testlib/qtestlog_p.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/testlib/qtestlog_p.h') diff --git a/src/testlib/qtestlog_p.h b/src/testlib/qtestlog_p.h index 75e39e8f3d..b4786b4904 100644 --- a/src/testlib/qtestlog_p.h +++ b/src/testlib/qtestlog_p.h @@ -55,7 +55,12 @@ class QRegularExpression; class Q_TESTLIB_EXPORT QTestLog { public: - enum LogMode { Plain = 0, XML, LightXML, XunitXML, CSV }; + enum LogMode { + Plain = 0, XML, LightXML, XunitXML, CSV, +#if defined(HAVE_XCTEST) + XCTest +#endif + }; static void enterTestFunction(const char* function); static void leaveTestFunction(); -- cgit v1.2.3