Skip to content
This repository
Newer
Older
100644 118 lines (80 sloc) 3.207 kb
96d33172 »
2013-11-03 Update badge in README.md
1 # GHUnit [![Build Status](https://travis-ci.org/gh-unit/gh-unit.png)](https://travis-ci.org/gh-unit/gh-unit) [![Cocoa Pod](https://cocoapod-badges.herokuapp.com/v/GHUnit/badge.png)](http://gh-unit.github.io/gh-unit/) [![Cocoa Pod](https://cocoapod-badges.herokuapp.com/p/GHUnit/badge.png)](http://gh-unit.github.io/gh-unit/) [![License](https://go-shields.herokuapp.com/license-MIT-blue.png)](http://opensource.org/licenses/MIT)
19722847 »
2009-01-20 Documentation
2
eab28949 »
2012-05-22 Fixing some build issues.
3 GHUnit is a test framework for Mac OS X and iOS.
2c92ca02 »
2010-11-09 Updating docs
4 It can be used standalone or with other testing frameworks like SenTestingKit or GTM.
1932e6be »
2009-02-05 New release
5
2c92ca02 »
2010-11-09 Updating docs
6 ## Features
1932e6be »
2009-02-05 New release
7
2c92ca02 »
2010-11-09 Updating docs
8 - Run tests, breakpoint and interact directly with the XCode Debugger.
9 - Run from the command line or via a Makefile.
7f82d376 »
2009-12-25 - Fixing test stats on parallel running
10 - Run tests in parallel.
11 - Allow testing of UI components.
2c92ca02 »
2010-11-09 Updating docs
12 - Capture and display test metrics.
876d3e71 »
2014-01-08 Updating docs
13 - Search and filter tests by keywords.
2c92ca02 »
2010-11-09 Updating docs
14 - View logging by test case.
7f82d376 »
2009-12-25 - Fixing test stats on parallel running
15 - Show stack traces and useful debugging information.
2b7ce738 »
2011-07-16 Updating install docs.
16 - Include as a framework in your projects
3ecc3c02 »
2011-10-27 Updating readme
17 - Determine whether views have changed (UI verification)
18 - Quickly approve and record view changes
2f55c718 »
2012-03-08 typo
19 - View image diff to see where views have changed
65a5ad76 »
2009-07-19 Updating docs
20
b7bd3c79 »
2014-01-29 Update README.md
21 ## Install (iOS)
ef8dff2d »
2013-10-30 Update README.md
22
3b32f6d9 »
2014-01-29 Update README.md
23 ### Install the GHUnit gem
ef8dff2d »
2013-10-30 Update README.md
24
b0a70765 »
2014-01-30 Updating README with new commands.
25 ```xml
26 $ gem install ghunit
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
27 ```
28
b0a70765 »
2014-01-30 Updating README with new commands.
29 ### Install the Tests target
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
30
b0a70765 »
2014-01-30 Updating README with new commands.
31 This will edit your ProjectName.xcodeproj file and create a Tests target, scheme, and a sample test file.
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
32
b0a70765 »
2014-01-30 Updating README with new commands.
33 ```xml
34 $ ghunit install -n ProjectName
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
35 ```
36
37 ### Add the Tests target to your Podfile
38
6a39800c »
2014-01-30 Update README.md
39 Create a new file named `Podfile` in the directory that contains the your `.xcodeproj` file, or edit it if it already exists.
b0a70765 »
2014-01-30 Updating README with new commands.
40
41 ```ruby
42 # Podfile
43 platform :ios, '6.0'
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
44
45 target :Tests do
0ddf8d19 »
2014-01-29 Updating version.
46 pod 'GHUnit', '~> 0.5.9'
ef8dff2d »
2013-10-30 Update README.md
47 end
48 ```
49
6a39800c »
2014-01-30 Update README.md
50 Install your project's pods. CocoaPods will then download and configure the required libraries for your project:
b0a70765 »
2014-01-30 Updating README with new commands.
51 ```xml
52 $ pod install
53 ```
54
458fe434 »
2014-03-14 Update README.md
55 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.
8ea665e8 »
2014-03-14 Update README.md
56
6a39800c »
2014-01-30 Update README.md
57 You should use the `.xcworkspace` file to work on your project:
b0a70765 »
2014-01-30 Updating README with new commands.
58 ```xml
6a39800c »
2014-01-30 Update README.md
59 $ open ProjectName.xcworkspace
b0a70765 »
2014-01-30 Updating README with new commands.
60 ```
61
62 ### Install Command Line
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
63
b0a70765 »
2014-01-30 Updating README with new commands.
64 ```xml
65 $ ghunit install_cli -n ProjectName
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
66 ```
b0a70765 »
2014-01-30 Updating README with new commands.
67
68 Install ios-sim using homebrew:
69
70 ```xml
71 $ brew install ios-sim
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
72 ```
73
b0a70765 »
2014-01-30 Updating README with new commands.
74 Now you can run tests from the command line:
75
76 ```xml
77 $ ghunit run -n ProjectName
78 ```
7f04d78e »
2014-01-29 Instructions to use GHUnit gem.
79
6a39800c »
2014-01-30 Update README.md
80 ### Add a test
81
82 To generate a test in your test target with name SampleTest:
83
84 ```xml
85 $ ghunit add -n ProjectName -f SampleTest
86 ```
87
88
ef8dff2d »
2013-10-30 Update README.md
89 ## Install (From Source)
90
91 ### iOS
92 ```bash
93 cd Project-iOS && make
94 ```
95
96 Add the `GHUnitIOS.framework` to your project
97
98 ### OS X
99 ```bash
100 cd Project-MacOSX && make
101 ```
102 Add the `GHUnit.framework` to your project
103
52b7250e »
2012-04-29 Update README.md
104 ## Documentation
105
fd8d7b58 »
2013-11-03 Fix typo
106 - [How to install, create and run tests](http://gh-unit.github.io/gh-unit/docs/index.html)
0d957261 »
2013-10-30 Update README.md
107 - [Online documentation](http://gh-unit.github.io/gh-unit/)
ef8dff2d »
2013-10-30 Update README.md
108 - [Google Group (Deprecated - Use Github Issues instead)](http://groups.google.com/group/ghunit)
65a5ad76 »
2009-07-19 Updating docs
109
b7bd3c79 »
2014-01-29 Update README.md
110 ## iOS
111
112 ![GHUnit-IPhone-0.5.8](https://raw.github.com/gh-unit/gh-unit/master/Documentation/images/ios.png)
21a9790a »
2009-05-20 Fixing namespace
113
2c92ca02 »
2010-11-09 Updating docs
114 ## Mac OS X
19722847 »
2009-01-20 Documentation
115
34f432dc »
2013-11-02 Update screens in README.md
116 ![GHUnit-0.5.8](https://raw.github.com/gh-unit/gh-unit/master/Documentation/images/macosx01.png)
45359c44 »
2010-10-25 Bringing back the pictures
117
Something went wrong with that request. Please try again.