Permalink
Browse files

Updating README with new commands.

  • Loading branch information...
1 parent fd4af78 commit b0a7076554d11004d1e50f9abef832bf3c55db15 @gabriel gabriel committed Jan 30, 2014
Showing with 34 additions and 11 deletions.
  1. +34 −11 README.md
View
@@ -22,35 +22,58 @@ It can be used standalone or with other testing frameworks like SenTestingKit or
### Install the GHUnit gem
-```
-gem install ghunit
+```xml
+$ 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.
-```
-ghunit -n NameProject
+```xml
+$ ghunit install -n ProjectName
```
### 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
pod 'GHUnit', '~> 0.5.9'
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)

0 comments on commit b0a7076

Please sign in to comment.