aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
Commit message (Collapse)AuthorAge
...
* 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)
* Revert (script chokes if variables aren't set):Gravatar gtm.daemon2013-08-30
| | | pass optional home directory and environment variables to the iossim binary.
* Pass optional home directory and environment variables to the iossim binary.Gravatar gtm.daemon2013-08-30
| | | DELTA=11 (11 added, 0 deleted, 0 changed)
* Fix "Format string is not a string literal" compile errorGravatar gtm.daemon2013-08-28
| | | DELTA=1 (0 added, 0 deleted, 1 changed)
* Fix up some assertions so that they don't run into issues with format stringsGravatar gtm.daemon2013-07-22
| | | | | not being constants. DELTA=32 (18 added, 0 deleted, 14 changed)
* Adding support for unit tests using ARC.Gravatar gtm.daemon2013-07-09
| | | DELTA=11 (9 added, 0 deleted, 2 changed)
* Added -[gtm_runUpToNSeconds:context:] to GTMFoundationUnitTestingUtilities.Gravatar gtm.daemon2013-05-13
| | | | | | | | Many people were using -[gtm_runUpToSixtySecondsWithContext:] which was fine until you started to see multiple failures in a single build and it could take a long time for a test pass to complete. 60 seconds is often much longer than necessary to know that a failure condition has occurred. DELTA=15 (15 added, 0 deleted, 0 changed)
* Increase the default timeout in the hope it works around problems testingGravatar gtm.daemon2013-04-22
| | | | | | on VMs where it seems the newer simulator is taking longer to start. Drop a TODO that the 10.8 defaults daemon is gonna make near impossible. DELTA=3 (0 added, 2 deleted, 1 changed)
* Update to a new version of Chromium's iossim that fixes the problem withGravatar gtm.daemon2013-04-17
| | | | | 10.8's defaults daemon that was causing device types not to be honored. DELTA=1 (0 added, 0 deleted, 1 changed)
* Try and make scripted builds more stable by killing the app being launched toGravatar gtm.daemon2013-03-01
| | | | | make sure nothing is left between runs to cause problems for the next launch. DELTA=24 (19 added, 0 deleted, 5 changed)
* Remove the second copy of the testing image, fix the project to referenceGravatar gtm.daemon2013-01-29
| | | | | the right one. DELTA=6 (4 added, 2 deleted, 0 changed)
* On second thought, drop the OS X support for now.Gravatar gtm.daemon2013-01-23
| | | DELTA=31 (1 added, 29 deleted, 1 changed)
* Fixup for the testing helper for OS X:Gravatar gtm.daemon2013-01-23
| | | | - Get NSImage defined. - Add framework to linking.
* [Author: thorogood]Gravatar gtm.daemon2013-01-22
| | | | | | | Adds [GTMTestCase imageFromResource:], as a helper method during tests. R=thomasvl APPROVED=thomasvl DELTA=46 (44 added, 0 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2013-01-03
| | | | | | | | | | Fix up one compile warning found by Xcode. Use the newer directive to fix up the unittest bundle ids (flagged by newer Xcodes). Force the deployment version to 10.5 to avoid a bunch of the color sync dep. notices. R=dmaclach DELTA=7 (2 added, 0 deleted, 5 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-12-14
| | | | | | Update the iossim binary to get one with -d for different simulator types. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-12-03
| | | | | | @impl doesn't need the superclass. R=dmaclach DELTA=2 (1 added, 0 deleted, 1 changed)
* [Author: altse]Gravatar gtm.daemon2012-11-16
| | | | | | | Fix typo with GTM_USE_TEST_AFTER_BUILD in comments. R=thomasvl APPROVED=thomasvl DELTA=1 (0 added, 0 deleted, 1 changed)
* type fixupGravatar thomasvl2012-09-08
|
* [Author: grobbins]Gravatar gtm.daemon2012-08-15
| | | | | | | Add a reset method to the boolean run loop context since, between tests, [context reset] looks more natural than [context setShouldStop:NO] and is more concise than allocating a new context. R=thomasvl APPROVED=dmaclach DELTA=5 (5 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-08-10
| | | | | | | Updated iossim with support for controlling the startup timeout. Add env variable to the test runner to allow control of the startup timeout. R=dmaclach DELTA=18 (7 added, 0 deleted, 11 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-08-06
| | | | | | | But in a version check and error out if the Xcode version appears to be too new for support the way unittests are run. R=dmaclach DELTA=15 (14 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-08-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Take 2: Overhaul how iOS unittests are run. Newer versions of Xcode have changes in the Simulator and supporting frameworks so the way GTM had been running unittests no longer works. The Simulator frameworks bail on launch with a zero exit code, so unless you look at the raw output, you don't even notice the tests no longer run. This new way comes from the work done in Chromium to actually launch the unittests fully under the simulator to get them a much more realistic environment. It also takes what was learned there about getting the output of the binary and how to deal with all the different ways a test and the simulator can fail to start along with all the different ways the failures/ crashing of the app can come back. There are some new env variables that let you force a version of the simulator (assuming it is installed) along with one to say if you want to run under iPhone or iPad. - Land a copy of the Chromium iossim util. - Land RuniOSUnitTestsUnderSimulator that uses iossim, projects have to be moved over to use it. R=dmaclach DELTA=227 (227 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-08-06
| | | | | | Reverting changes for launching tests due to some errors not seen in testing before hand. TBR=dmaclach
* [Author: thomasvl]Gravatar gtm.daemon2012-08-06
| | | | | | | | | | | | | | | | | | | | | | | | | | Overhaul how iOS unittests are run. Newer versions of Xcode have changes in the Simulator and supporting frameworks so the way GTM had been running unittests no longer works. The Simulator frameworks bail on launch with a zero exit code, so unless you look at the raw output, you don't even notice the tests no longer run. This new way comes from the work done in Chromium to actually launch the unittests fully under the simulator to get them a much more realistic environment. It also takes what was learned there about getting the output of the binary and how to deal with all the different ways a test and the simulator can fail to start along with all the different ways the failures/ crashing of the app can come back. There are some new env variables that let you force a version of the simulator (assuming it is installed) along with one to say if you want to run under iPhone or iPad. - Land a copy of the Chromium iossim util. - Convert RunIPhoneUnitTest over to use iossim. R=dmaclach DELTA=201 (79 added, 77 deleted, 45 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-26
| | | | | | Fix up another case of bad format string handling by various versions of Xcode. R=thomasvl DELTA=15 (15 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-26
| | | | | | Fix up GTM for Xcode 4.2 R=thomasvl DELTA=9 (9 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-07-26
| | | | | Fix up one more format string TBR=dmaclach
* [Author: dmaclach]Gravatar gtm.daemon2012-07-26
| | | | | | | Clean up GTMSenTestCase so that the format strings work correctly Get rid of a lot of bad whitespace. TBR=thomasvl DELTA=218 (0 added, 0 deleted, 218 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-24
| | | | | | Some more google toolbox cleanup. TBR=thomasvl DELTA=25 (6 added, 2 deleted, 17 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-24
| | | | | | Clean up all of our format string issues amongst some other fun stuff. R=thomasvl DELTA=167 (90 added, 8 deleted, 69 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-07-23
| | | | | | | Add a CPP gate to prevent the install of the atexit hook for running leaks. R=dmaclach DELTA=2 (0 added, 0 deleted, 2 changed)