aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMSenTestCase.h
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
* 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)
* 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)
* type fixupGravatar thomasvl2012-09-08
|
* [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: dmaclach]Gravatar gtm.daemon2012-06-26
| | | | | | Add Quaternions to our list of things the GTMSenTestCase can handle. R=fvaucher DELTA=3 (3 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-04-06
| | | | | Add support for doing asserts on GLK types (GLKVector*, GLKMatrix*) R=thomasvl
* [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: dmaclach]Gravatar gtm.daemon2010-07-20
| | | | | | | Clean up GTMSenTest so that the test predicates match more closely the ones supplied with SenTest and also gets rid of "Using NULL in arithmetic" warnings when running through C++ compiler. R=grobbins DELTA=62 (0 added, 8 deleted, 54 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-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: altse]Gravatar gtm.daemon2009-09-16
| | | | | | Fix syntax error in STAssertEqualObjects R=thomasvl DELTA=1 (0 added, 0 deleted, 1 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-09-15
| | | | | | | Fix up GTMSenTestCase to compile nicely under clang. Fix for http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=34. R=thomasvl DELTA=17 (0 added, 0 deleted, 17 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-07-28
| | | | | | | Fixes up some warnings that were being generated when compiling with the 4.2 compiler. Also cleans up code to look prettier. DELTA=111 (0 added, 0 deleted, 111 changed) R=thomasvl
* [Author: gianno]Gravatar gtm.daemon2009-05-29
| | | | | | Allow inclusion of GTMSenTestCase from objective-C++ classes. R=dmaclach,thomasvl DELTA=7 (7 added, 0 deleted, 0 changed)
* - GTMStackTrace works on 10.5+ (and iPhone) using NSThread to build the call ↵Gravatar thomasvl@gmail.com2008-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | stack. - Added GTM_EXTERN that makes it easier to mix and match objc and objc++ code. - Added GTMHotKeysTextField for display and editing of hot key settings. - Added GTMCarbonEvent for dealing with Carbon Events and HotKeys in a ObjC like way. - Backported the Atomic Barrier Swap functions for Objective C back to Tiger. - Added a variety of new functions to GTMUnitTestingUtilities for checking if the screensaver is in the way, waiting on user events, and generating keystrokes. - If you are using any Carbon routines that log (DebugStr, AssertMacros.h) and use GTMUnitTestDevLog, the log routines now go through _GTMDevLog so that they can be caught in GTMUnitTestDevLog and verified like any _GTMDevLog calls you may make. For an example of this in action see GTMCarbonEventTest.m. - Added GTMFileSystemKQueue. It provides a simple wrapper for kqueuing something in the file system and tracking changes to it. - RunIPhoneUnitTest.sh now cleans up the user home directory and creates a documents directory within it, used when requesting a NSDocumentDirectory. - Added GTMNSFileManager+Carbon which contains routines for path <-> Alias conversion and path <-> FSRef conversion. - Added GTMNSArray+Merge for merging one array into another with or without a custom merging function, returning a new array with the merged contents.
* - 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
|
* - Removed GTMNSWorkspace+ScreenSaver as it has always been a little dodgy dueGravatar thomasvl@gmail.com2008-07-21
| | | | | | | | | | | | | | | | to it's dependencies on undocumented frameworks, and the ScreenSaver framework doesn't play nicely in GC mode. - Added property methods to GTMHTTPFetcher. These are convenient alternatives to storing an NSDictionary in the userData. - Renamed GTMDevLog.m to GTMDevLogUnitTestingBridge.m and added some more comments where it comes into play to hopefully make it more clear that it isn't needed in most cases. - Fixed a potential GTMHTTPFetcher crash on failed authentication. - Added a obj-c logging package, GTMLogger, for applications that want an application level logging system. See GTMLogger.h, GTMLogger+ASL.h, and GTMLoggerRingBufferWriter.h for what the basic system and two optional additions can do.
* 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)
* initial drop of a few sources to start things outGravatar thomasvl2008-01-28