gh-unit alternatives and similar libraries
Based on the "TDD / BDD" category.
Alternatively, view gh-unit alternatives based on common mentions on social networks and blogs.
Quick9.8 5.1 L5 gh-unit VS QuickThe Swift (and Objective-C) testing framework.
OHHTTPStubs9.4 0.0 L2 gh-unit VS OHHTTPStubsStub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
Kiwi9.3 0.0 L3 gh-unit VS KiwiSimple BDD for iOS
Nimble9.3 3.4 L5 gh-unit VS NimbleA Matcher Framework for Swift and Objective-C
Specta8.5 0.0 L5 gh-unit VS SpectaA light-weight TDD / BDD framework for Objective-C & Cocoa
swift-corelibs-xctest7.9 3.9 gh-unit VS swift-corelibs-xctestThe XCTest Project, A Swift core library for providing unit test support
SwiftCheck7.6 0.0 L1 gh-unit VS SwiftCheckQuickCheck for Swift
XcodeCoverage7.5 0.0 gh-unit VS XcodeCoverageCode coverage for Xcode projects (Objective-C only)
SwiftyMocky6.9 0.0 gh-unit VS SwiftyMockyFramework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
Sleipnir6.7 0.0 L4 gh-unit VS SleipnirBDD-style framework for Swift
Spry4.3 0.0 gh-unit VS SpryA Mac and iOS Playgrounds Unit Testing library based on Nimble.
PlaygroundTDD4.3 0.0 gh-unit VS PlaygroundTDDSmall library to easily run your tests directly within a Playground
Dixie4.2 0.0 L5 gh-unit VS DixieDixie, turning chaos to your advantage.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of gh-unit or a related project?
GHUnit is deprecated and not actively maintained! Use
GHUnit is a test framework for Mac OS X and iOS. It can be used standalone or with other testing frameworks like SenTestingKit or GTM.
If you need support for asynchronous tests you might want to check out GRUnit which is a recent fork of this project.
- Run tests, breakpoint and interact directly with the Xcode Debugger.
- Run from the command line or via a Makefile.
- Run tests in parallel.
- Allow testing of UI components.
- Capture and display test metrics.
- Search and filter tests by keywords.
- View logging by test case.
- Show stack traces and useful debugging information.
- Include as a framework in your projects
- Determine whether views have changed (UI verification)
- Quickly approve and record view changes
- View image diff to see where views have changed
Install the GHUnit gem
$ gem install ghunit
Install the Tests target
This will edit your ProjectName.xcodeproj file and create a Tests target, scheme, and a sample test file.
$ ghunit install -n ProjectName
Add the Tests target to your Podfile
Create a new file named
Podfile in the directory that contains the your
.xcodeproj file, or edit it if it already exists.
# Podfile platform :ios, '6.0' target :Tests do pod 'GHUnit', '~> 0.5.9' end
Install your project's pods. CocoaPods will then download and configure the required libraries for your project:
$ pod install
Note: If you don't have a Tests target in your project, you will get an error: "[!] Unable to find a target named Tests". If you named your test target something different, such as "ProjectTests" then the Podfile target line should look like:
target :ProjectTests do instead.
You should use the
.xcworkspace file to work on your project:
$ open ProjectName.xcworkspace
Install Command Line
$ ghunit install_cli -n ProjectName
Install ios-sim using homebrew:
$ brew install ios-sim
Now you can run tests from the command line:
$ ghunit run -n ProjectName
Add a test
To generate a test in your test target with name SampleTest:
$ ghunit add -n ProjectName -f SampleTest
Install (From Source)
cd Project-iOS && make
GHUnitIOS.framework to your project
cd Project-MacOSX && make
GHUnit.framework to your project
- How to install, create and run tests
- Online documentation
- Google Group (Deprecated - Use Github Issues instead)
Mac OS X
*Note that all licence references and agreements mentioned in the gh-unit README section above are relevant to that project's source code only.