Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Updating README with new commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Jan 30, 2014
1 parent fd4af78 commit b0a7076
Showing 1 changed file with 34 additions and 11 deletions.
45 changes: 34 additions & 11 deletions README.md
Expand Up @@ -22,35 +22,58 @@ It can be used standalone or with other testing frameworks like SenTestingKit or


### Install the GHUnit gem ### Install the GHUnit gem


``` ```xml
gem install ghunit $ gem install ghunit
``` ```


### Create the Tests target ### Install the Tests target


This will edit your NameProject.xcodeproj file and create a Tests target, scheme, and a sample test file. This will edit your ProjectName.xcodeproj file and create a Tests target, scheme, and a sample test file.


``` ```xml
ghunit -n NameProject $ ghunit install -n ProjectName
``` ```


### Add the Tests target to your Podfile ### Add the Tests target to your Podfile


In your Podfile: 1. Create a new file named `Podfile` in the directory that contains the your `.xcodeproj` file, or edit it if it already exists.

```ruby
# Podfile
platform :ios, '6.0'


```
target :Tests do target :Tests do
pod 'GHUnit', '~> 0.5.9' pod 'GHUnit', '~> 0.5.9'
end end
``` ```


And install the GHUnit pod into the workspace: 2. Install your project's pods. CocoaPods will then download and configure the required libraries for your project:
```xml
$ pod install
```

3. You should use the `.xcworkspace` file to work on your project:
```xml
$ open myproject.xcworkspace
```

### Install Command Line


```xml
$ ghunit install_cli -n ProjectName
``` ```
pod install
Install ios-sim using homebrew:

```xml
$ brew install ios-sim
``` ```


Then open the .xcworkspace. Switch to the Tests scheme to run the tests. Now you can run tests from the command line:

```xml
$ ghunit run -n ProjectName
```


## Install (From Source) ## Install (From Source)


Expand Down

0 comments on commit b0a7076

Please sign in to comment.