aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMSenTestCase.m
Commit message (Collapse)AuthorAge
* 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.
* 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
|
* 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.
* add some casts to objc_msgSendGravatar Thomas Van Lenten2016-02-23
|
* 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
* Updating GTM test files to build for x86_64Gravatar gtm.daemon2014-03-10
| | | DELTA=12 (6 added, 0 deleted, 6 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)
* 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.daemon2012-12-03
| | | | | | @impl doesn't need the superclass. R=dmaclach DELTA=2 (1 added, 0 deleted, 1 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)
* [Author: thomasvl]Gravatar gtm.daemon2012-03-07
| | | | | | Skip sending -class to to self in class methods. R=dmaclach DELTA=3 (0 added, 0 deleted, 3 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-02-21
| | | | | | But a pool around each invoke test to make sure all objects that go into the pool are cleaned up sooner. R=dmaclach
* [Author: thomasvl]Gravatar gtm.daemon2011-11-29
| | | | | | | | | | | | | | | Move a bunch of tests over onto the GTM test base class. Fetch some test images from the bundle the test is compiled into instead of assuming main app. Change the default iOS logging directory to just be the documents directory since it should work for all iOS versions. Add initial support for using SenTestingKit instead of our custom version to allow the Xcode 4 UI for unittesting. Add a target for using SenTestingKit. Add a shell app for the TEST_HOST for SenTestingKit usage (since there are UI tests, we need to use a real app and not the octest binary). R=dmaclach DELTA=517 (482 added, 9 deleted, 26 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-11-19
| | | | | | | | | Move the test for abstract unittest support out into a file that can be shared with iOS. Add the unittest to the iOS project. Fix up the iOS unittesting support to handle abstract tests. R=dmaclach DELTA=156 (105 added, 20 deleted, 31 changed)
* [Author: craigwilkinson]Gravatar gtm.daemon2010-11-17
| | | | | | | Fix a few warning in release mode, when _GTM* expands to not use it's arguments. R=thomasvl,sharvil APPROVED=sharvil DELTA=6 (6 added, 0 deleted, 0 changed)
* [Author: nigelchoi]Gravatar gtm.daemon2010-08-10
| | | | | | Fixed invocation of leaks by iPhone Simulator builds. Fail build jobs properly if leaks invocation failed. (http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=56) R=dmaclach,thomasvl APPROVED=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-07-02
| | | | | | | Fix up GTMSenTestCase by making special code simulator only. This fixes building on Tiger and isolates the interesting case. R=thomasvl DELTA=8 (6 added, 1 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-07-01
| | | | | | Fix up GTMSenTestCase on iOS4 (and 3.2) R=thomasvl DELTA=10 (8 added, 0 deleted, 2 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-30
| | | | | | Fix up the test case code so that it reports the correct state, and matches OCUnit. R=thomasvl DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-04
| | | | | | | Turns on the undeclared-selector warning. This may cause builds to fail if they are using our configs. Also cleaned up some whitespace issues. R=thomasvl DELTA=94 (71 added, 22 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-09-18
| | | | | | | | Makes GTMSenTestCase work better with abstract test classes in cases where we want to tag a class as being an abstract test case even if it doesn't have any subclasses. R=thomasvl DELTA=36 (0 added, 19 deleted, 17 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-09-17
| | | | | | Fix up build on iPhone device. R=jfaller,thomasvl DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-09-16
| | | | | | | Fix up the unit testing stack that I broke on iPhone. This makes the unittesting stuff on iPhone much closer to the original SenTestCase design. R=thomasvl,altse DELTA=180 (96 added, 61 deleted, 23 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-09-16
| | | | | | | | | Add support for more complex unit test class hierarchies than what is available out of the box in SenTestCase. I currently have the release notes checked out as part of a separate change, and will update them accordingly for this as well. R=thomasvl,mrossetti DELTA=80 (79 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-03-27
| | | | | | | | Change build script so that it removes all of the gcda files for the current config project wide, which in general is what people will want. Added unit testing to GTMHotKeyTextField. From about 6% up to 90%. DELTA=10 (3 added, 0 deleted, 7 changed) R=thomasvl
* - Added GTMNSObject+KeyValueObserving to make it easier on folks to do KVOGravatar thomasvl@gmail.com2009-02-03
| | | | | | | | | | "correctly". Based on some excellent code by Michael Ash. http://www.mikeash.com/?page=pyblog/key-value-observing-done-right.html This has been added for iPhone and OS X. - Fixed up GTMSenTestCase on iPhone so that it has a description that matches that of OCUnit.
* - turned off _debug framework support in tests since we now capture a lot moreGravatar thomasvl@gmail.com2009-01-09
| | | | | | | | | | | | in log validation. - Added GTM_SUPPORT_GC for controlling the inclusion of GC related code. - If you are using GTMUnitTestDevLog, it also tries to capture logs from NSAssert. - Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses FastEnumeration. - GTMNSWorkspace+Running gives a variety of ways of determining the attributes of running processes.
* - GTM_INLINE will make sure a function gets inlined, and provides a consistentGravatar thomasvl@gmail.com2008-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | way for all GTM code to do it. - Added GTMDebugThreadValidation to allow you to enforce the fact that your code must run in the main thread in DEBUG builds. - Updated some internals of the iPhone unittesting so it doesn't double print the test descriptions, file names, or lines numbers of a test failure line. Also includes the test names in the error output. - Changed the xcconfigs so that know it's easier to set different settings at the different levels and not accidentally overwrite settings set at lower levels in the "settings collapse". Also tightened up warnings significantly. - Changed how gtm_unitTestExposedBindingsTestValues works. If you have an implementation of gtm_unitTestExposedBindingsTestValues in your own code you will need to update to the new way of calling. See implementations in GTMNSObject+BindingUnitTesting.m for details. - Added support for grabbing the build number for a particular OS in GTMSystemVersion and easily comparing it to known build numbers, and switched some types from in GTMSystemVersion from "int" to SInt32 to make 64 bit work better. - Added support for SnowLeopard (10A96). We build cleanly with the 10.6 SDKs and all radar checks were updated accordingly. Build All script was also updated to build on SnowLeopard if you have the SDK available. - Turned off building ppc64 GTM because the SnowLeopard SDK currently doesn't have ppc64 support, so SenTestCase isn't defined. This makes it impossible to build the ppc64 10.5 config on SnowLeopard. We have left the setting in the xcconfig for those of you who need it, but have disabled it in the GTM project settings. - Turned on stack smashing protection on the debug builds for all Leopard and above. - Added ability to easily do leak checking by defining the GTM_ENABLE_LEAKS environment variable. It isn't on by default because several of Apple's frameworks leak. You can work around these false positives by using the GTM_LEAKS_SYMBOLS_TO_IGNORE environment variable. Also if you turn on leaks make sure to turn off zombies by defining the GTM_DISABLE_ZOMBIES variable, otherwise every memory allocation you do will look like a leak.
* fix double printing of failures on the iphone unittestsGravatar thomasvl@gmail.com2008-09-25
|
* Landing a log of AppleScript/AppleEvent support code.Gravatar thomasvl2008-06-13
| | | | | | | Landing GTMHTTPServer as a simple server but mainly for use in unittesting. _GTMCompileAssert for doing compile time assertions to GTMDefines.h Lots of improvments for UnitTesting, Dave's gonna put up a wiki page shortly with the full details of what can be done.
* See the ReleaseNotes for the full details, highlights:Gravatar thomasvl2008-04-14
- bug fixes - code coverage support - more complete unittests - full support for unittesting UIs - support for the iphone sdk (include ui unittesting)