aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
Commit message (Collapse)AuthorAge
* Fix failure due to adding same method more than once (#245)Gravatar Sundeep2019-09-10
|
* Revert the #include path, not sure it is the best, but keep it the same.Gravatar Thomas Van Lenten2019-08-26
|
* Get rid of exceptions happening when a C++ test fails.Gravatar Dave MacLachlan2019-08-26
| | | | | Also cleanup references to SenTest (no longer supported) Document differences between gTest and how GTMGoogleTestRunner executes tests.
* Fix GTMGoogleTestRunner triggering "NULL cString" exception in NSString.Gravatar Konstantin Varlamov2019-08-14
|
* Add XCTAssertAssertsGravatar Dave MacLachlan2019-05-20
| | | | | | XCTAssertAsserts is for testing if NSAssert or NSParameterAssert is called. It is a no-op if NS_BLOCK_ASSERTIONS is defined. Update project to match "Xcode" standard with regards to having assertions off in release.
* Turn off the compiler warnings when building in another spot.Gravatar Thomas Van Lenten2018-12-03
|
* Turn off the compiler warnings when building the sources.Gravatar Thomas Van Lenten2018-12-03
| | | | | Let the library build cleaning in the modes folks should migrate, their code will still get the warning using things.
* Remove unused GTMUnitTestDevLog. (#203)Gravatar dmaclach2018-11-13
| | | It wasn't being used anywhere.
* Fix up deprecations so that they use proper version numbering x_y vs x.y (#195)Gravatar dmaclach2018-11-13
|
* Deprecate runloop spinning functionality for tests. (#191)Gravatar dmaclach2018-11-12
| | | It should all be replaced with XCTestExpectations.
* Deprecate all uses of SenTesting (#186)Gravatar dmaclach2018-11-12
|
* Let Xcode 9 update the settings on the projects.Gravatar Thomas Van Lenten2017-10-06
|
* Make unittesting headers work with -Wreserved-id-macroGravatar Thomas Van Lenten2017-10-06
|
* Cast NSInteger to long for formatting as %ldGravatar Mark Mentovai2017-07-24
| | | | | | | | | | | | | | In https://crbug.com/747643, a new version of Clang produces warnings when attempting to format NSInteger as %zd (which is normally used for ssize_t). Acquiesce by casting NSInteger to long and formatting using %ld. In the process, I audited all occurrences of %zd in GTM and found that the remainder were being used to format size_t, which ought to use %zu, so I’ve corrected those. I also audited the existing uses of %zu and found them all to be correct.
* 10.13 SDK (and iOS 11 equivalent) compatibility for GTMGravatar Mark Mentovai2017-07-10
| | | | | | | | | | | | | | | Starting in the 10.6 SDK, the non-underscored and all-lowercase macro names in <AssertMacros.h> were deprecated. In the 10.13 SDK shipping in Xcode 9 beta 3 (but not previous betas of Xcode 9), Apple has made good on its promise to eventually disable these names. Update GTM to use the new underscored mixed-case names. Provided that nobody needs to target anything older than the 10.5 SDK anymore, this should be a safe change. Aside from GTMCarbonEvent.m, which is used by Chrome, this change is untested, and was made by mechanically replacing uses of the various check, require, and verify macros found in GTM.
* Provides a testing entitlements files.Gravatar Thomas Van Lenten2017-06-16
| | | | Same as what is in UnitTesting/GTMIPhoneUnitTestMain.m.
* Remove trailing whitespacesGravatar Sergio Campama2017-03-29
|
* Change file type from UTF16 to ASCIIGravatar Sergio Campama2017-03-13
|
* First pass removing all deprecated uses of GTM_IPHONE_USE_SENTEST.Gravatar Thomas Van Lenten2016-12-05
| | | | SENTEST as a framework doesn't exist anymore so there's no point in supporting it.
* 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