From 8d4831d5bf6d0c714d7b03b07d8b393063a40916 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Tue, 12 Nov 2013 23:00:15 +0000 Subject: Add GoogleTestRunner to GTM. This allows you to easily mix and match SenTest with GoogleTest https://code.google.com/p/googletest/ which is nice when working with C++ code. Also adds GTMCodeCoverage which allows you to do code coverage with Xcode 5 and iOS7. DELTA=424 (424 added, 0 deleted, 0 changed) --- UnitTesting/GTMCodeCoverageApp.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 UnitTesting/GTMCodeCoverageApp.h (limited to 'UnitTesting/GTMCodeCoverageApp.h') diff --git a/UnitTesting/GTMCodeCoverageApp.h b/UnitTesting/GTMCodeCoverageApp.h new file mode 100644 index 0000000..32c92c6 --- /dev/null +++ b/UnitTesting/GTMCodeCoverageApp.h @@ -0,0 +1,33 @@ +// +// GTMCodeCovereageApp.h +// +// Copyright 2013 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy +// of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. +// + +// This code exists for doing code coverage with Xcode and iOS. +// Please read through https://code.google.com/p/coverstory/wiki/UsingCoverstory +// for details. + +#import + +// If you are using this with XCTest (as opposed to SenTestingKit) +// make sure to define GTM_USING_XCTEST. +#define GTMXCTestObserverClassKey @"XCTestObserverClass" +#define GTMXCTestLogClass @"XCTestLog" + +@interface UIApplication(GTMCodeCoverage) +- (void)gtm_gcov_flush; +@end + -- cgit v1.2.3