aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
Commit message (Collapse)AuthorAge
* First cut at pruning things/updating things.Gravatar dmaclach2016-10-07
| | | | | | | | | | | | | | | Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
* Updates GTMSenTestCase to not return nil from a non-null annotated method.Gravatar Thomas Van Lenten2016-09-16
|
* Remove the direct dependency on SenTestFailureException.Gravatar Thomas Van Lenten2016-08-05
|
* Start updating the unittesting supportGravatar Thomas Van Lenten2016-04-29
| | | | | | | - Remove GTM_ENABLE_LEAKS (pretty stale at this point). - Remove imageFromResource from GTMSenTestCase (asset catalogs, etc. have changed patterns). - Remove XCTest macros that are now supplied by XCTest directly. Checked back to Xcode 6.4 and they are built into XCTest. - Start removing SenTest support.
* Fix GTMGeometry builds on 64 bit OS X where CG and NS struct sizes may differ.Gravatar Thomas Van Lenten2016-04-07
| | | | | | | | | | Remove GTMCGPointToNSPoint, GTMNSPointToCGPoint, GTMCGRectToNSRect, GTMCGSizeToNSSize Note that Apple's NSGeometry.h sometimes defines NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES so there's some reason to believe the CG and NS structs can compile incompatibly. Fix a typo in GTMSenTestCase.h
* add some casts to objc_msgSendGravatar Thomas Van Lenten2016-02-23
|
* Make gtm_runUntilDate:context: run on the runloop it is called on, not the ↵Gravatar Thomas Van Lenten2015-11-03
| | | | current runloop of the caller.
* Minor fixesGravatar Thomas Van Lenten2015-10-20
| | | | | - Support for GCC_WARN_STRICT_SELECTOR_MATCH - Fix long busted XTCAssertEqualCStrings
* Update iossim for Xcode 7 supportGravatar Thomas Van Lenten2015-10-20
| | | | | | | | As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe
* Let Xcode rewrite the strings filesGravatar Thomas Van Lenten2015-09-08
|
* Relay the real argc/argv to testing::InitGoogleTestGravatar Thomas Van Lenten2015-09-08
|
* support invoking the script via symlinksGravatar Thomas Van Lenten2015-09-08
|
* Minor update for Xcode 6 unittesting wrapperGravatar Thomas Van Lenten2015-09-08
|
* Updated iossim binary with improved crash detection for Xcode 6.1.Gravatar thomasvl2014-11-17
| | | | | (Source bassed of chromium hash 10318845b6eaca2658d96df562c34579df5a08f2)
* Change output when simulator fails to open to be a note.Gravatar thomasvl2014-11-17
|
* Rebuild of iossim to get things working with Xcode 6.1.Gravatar thomasvl2014-11-06
|
* Updated iossim build that handles iOS 8+ (rather then just 8.0)Gravatar thomasvl2014-10-29
|
* Fix up GTMGoogleTestRunner for Xcode 6.1.Gravatar thomasvl2014-10-29
| | | | | - We now add selectors to the class because Xcode 6.1 appears to take the test name from the selector instead of from the -[XCTest name] method.
* After switching to Xcode 6, the Simulator sometimes fails to open causing theGravatar thomasvl2014-10-29
| | | | | tests to fail. The projects that have more test targets are more vulnerable to the issue. When the simulator fails to open, we should reset it and try again.
* Use 'iOS Simulator' for Xcode6 and 'iPhone Simulator' for earlier versions ↵Gravatar gtm.daemon2014-10-08
| | | | | | to kill the simulator process. DELTA=8 (7 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=sh=8
* Update XCTAssertNotEqualStrings and XCTAssertEqualStrings to use %zd.Gravatar gtm.daemon2014-09-29
| | | | DELTA=2 (0 added, 0 deleted, 2 changed) DELTA_BY_EXTENSION=h=2
* Use our constant instead of the system header one to avoid a deprecated warning.Gravatar gtm.daemon2014-09-22
| | | | | | Turn off deprecated warnings when we do have to use the symbols. DELTA=17 (16 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=h=5,m=12
* Quote DEVELOPER_BIN_DIR in case it has spaces.Gravatar gtm.daemon2014-09-22
| | | | | | This is required if the Xcode path contains "Xcode6-Beta6 2.app" for example. DELTA=1 (0 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=sh=1
* Updated iossim from chromium (d7875158bb93ef51cc3bfc59e23ca35ed50c5042).Gravatar gtm.daemon2014-08-27
| | | | | Adds support for Xcode 5.x and Xcode 6. Note: Xcode 6 renamed the simulator device types, so any values being passed will need to update.
* General fixes for GTM.Gravatar gtm.daemon2014-08-01
| | | | | | | | | a) only define GTM_IPHONE_USE_SENTEST if it hasn't been defined on Mac. It's a horrible name, but it does control us using SENTEST instead of XCTest. b) Object is now found in the runtime on both iOS and MacOS c) MethodCheck had a potential memory leak DELTA=47 (18 added, 5 deleted, 24 changed) DELTA_BY_EXTENSION=h=30,m=12
* Typo in XCTAssertEqualCStringsGravatar gtm.daemon2014-07-30
| | | | | | Means it doens't compile when that macro is used. DELTA=1 (0 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=h=1
* Add a comment pointing to Xcode 6's XCTestExpectation for testing ↵Gravatar gtm.daemon2014-07-25
| | | | | | asynchronous behavior. DELTA=4 (4 added, 0 deleted, 0 changed) DELTA_BY_EXTENSION=h=4
* Fix up GTMSenTestCase so that it pulls in SenTestingKit on Xcode < 5.Gravatar gtm.daemon2014-06-16
| | | | DELTA=2 (1 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=h=2
* Fix up the gate on GTMSenTestCase and iOS 8 so that it is safer in case a ↵Gravatar gtm.daemon2014-06-06
| | | | | | | | new version of Xcode 5 comes out with __IPHONE_8_0 declared in the iOS 7 SDK. DELTA=2 (0 added, 0 deleted, 2 changed) DELTA_BY_EXTENSION=h=2
* Fix up the XCTest support in GTMGravatar gtm.daemon2014-06-04
| | | | DELTA=42 (30 added, 0 deleted, 12 changed) DELTA_BY_EXTENSION=h=42
* Fixes 64-bit compile time warnings - ↵Gravatar gtm.daemon2014-06-04
| | | | | | googlemac/opensource/google-toolbox-for-mac/ DELTA=1 (0 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=m=1
* Cast NSComparisonResult to long before printing for 64-bit compatibility.Gravatar gtm.daemon2014-06-04
| | | | DELTA=1 (0 added, 0 deleted, 1 changed) DELTA_BY_EXTENSION=h=1
* Fix up broken GTMSenTestCase.h. Not sure what happened with the merge there.Gravatar gtm.daemon2014-06-02
| | | | DELTA=47 (2 added, 2 deleted, 43 changed) DELTA_BY_EXTENSION=h=42,m=3
* Add support for XCTest (as opposed to OCUnit) to GTM. Define ↵Gravatar gtm.daemon2014-06-02
| | | | | | GTM_USING_XCTEST to 1 to use it. DELTA=486 (352 added, 0 deleted, 134 changed) DELTA_BY_EXTENSION=h=467,m=15,mm=1,txt=3
* Add a different method for the notification vs. the delegate, but channelGravatar gtm.daemon2014-03-26
| | | | | | | the two together after switching back to the application object. DELTA=8 (6 added, 0 deleted, 2 changed) RCL=63807817-p10 RDATE=2014/03/26 08:58:12
* Reverting, change wasn't correct in all cases.Gravatar gtm.daemon2014-03-26
| | | | RCL=63803810-p10 RDATE=2014/03/26 07:41:01
* Pass correct UIApplication object to method runTestsAndExit:Gravatar gtm.daemon2014-03-26
| | | DELTA=2 (0 added, 0 deleted, 2 changed)
* New iossim to work with xcode 5.1 (and 5.0). It will *not* work for Xcode 4.x.Gravatar gtm.daemon2014-03-13
| | | DELTA=1 (0 added, 0 deleted, 1 changed)
* Updating GTM test files to build for x86_64Gravatar gtm.daemon2014-03-10
| | | DELTA=12 (6 added, 0 deleted, 6 changed)
* More support for allowing GTM to compile with -Wundef.Gravatar gtm.daemon2014-02-24
| | | DELTA=8 (8 added, 0 deleted, 0 changed)
* Fix up some cases of GTM not compiling with -Wundef on.Gravatar gtm.daemon2014-02-21
| | | DELTA=23 (16 added, 0 deleted, 7 changed)
* Fix build of Mac GTM project with static analyzer. Remove ↵Gravatar gtm.daemon2013-12-19
| | | | | GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton. DELTA=447 (49 added, 296 deleted, 102 changed)
* Enable code coverage for GTM test suite in iOS 7.Gravatar gtm.daemon2013-11-26
| | | | | Call gcov_flush at end of tests manually if GTMCodeCoverageApp is available to receive request. DELTA=5 (5 added, 0 deleted, 0 changed)
* - Add gcov flushes that will happen within the test bundles to also captureGravatar gtm.daemon2013-11-26
| | | | | | | | | | the coverage data there. Needed if you link some of your code directly into the test bundles or if you have code in headers (inlines, c++ templates, etc.) - Add a preprocessor gate to only bring in the coverage support when enabled, lets you add the source, and then use a Xcode Configuration to control when it is needed, otherwise you can end up linking coverage into your Release builds. DELTA=28 (28 added, 0 deleted, 0 changed)
* Get rid of extra semicolons in my previous change.Gravatar gtm.daemon2013-11-13
| | | DELTA=2 (0 added, 0 deleted, 2 changed)
* Add GoogleTestRunner to GTM.Gravatar gtm.daemon2013-11-12
| | | | | | | | | 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)
* Put expected-actual-diff image paths each alone on a line, so it’s easier ↵Gravatar gtm.daemon2013-10-22
| | | | | to turn them into 'open' commands or to pick them out to open in other ways. DELTA=3 (0 added, 0 deleted, 3 changed)
* Extend the default timeout for killing apps and allow it to be controlled viaGravatar gtm.daemon2013-09-27
| | | | | an environment variable. DELTA=8 (6 added, 0 deleted, 2 changed)
* Updated iossim binary to pick up the change inGravatar gtm.daemon2013-09-24
| | | | | | https://src.chromium.org/viewvc/chrome?view=rev&revision=222918 to get better support for the iOS 7 simulator. DELTA=1 (0 added, 0 deleted, 1 changed)
* Fix unset variables issue for user dir and env variables.Gravatar gtm.daemon2013-08-30
| | | DELTA=18 (18 added, 0 deleted, 0 changed)