TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Jonathan Crooke.
Unit-testing Cocoa just got easy. Your one-stop shop for unit testing iOS and OS X applications. Just one Pod, one header import and you're good to go.
NB: Very initial alpha release.
TPProxy
- logs and ignores all messages.OCUnit
convenience macros.assertTrue()
, assertFalse()
, assertNil()
, assertNotNil()
nil
-safe equality macro TPIsEqual(x,y)
, whereby (nil == nil) == YES
.UIApplication
, UIApplicationDelegate
...)NSNotificationCentre
+[NSDate date]
UIView
subclasses testable in the simulatorThis project is 100% intended for installation via CocoaPods.
Example installation in your Podfile
for a mixed iOS/OS X library project:
target :MyLibraryOSXTests do
platform :osx
pod 'TestPilot'
end
target :MyLibraryiOSTests do
platform :ios
pod 'TestPilot'
end
Import the header file TestPilot.h
to your project - preferably into your test bundle .pch
file and you're good to go!
Get testing with the provided frameworks.
You may wish to add the inhibit_all_warnings!
to your Podfile
to quieten your builds.
Warning:
[!] The target `FooTests [Debug - Release]' overrides the `FRAMEWORK_SEARCH_PATHS' build setting defined in `Pods/Pods-FooTests.xcconfig'.
- Use the `$(inherited)' flag, or
- Remove the build settings from the target.