bwoken 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,106 +9,129 @@ Supports coffeescript and javascript.
9
9
 
10
10
  ## Usage
11
11
 
12
- ### Simulator or Device?
13
-
14
- To run bwoken tests on your device, just plug it in! And if you want to run tests in the simulator, just unplug it!
15
-
16
12
  ### Running tests
17
13
 
18
- Make sure bwoken is properly installed via one of the methods below. Then, build your project and run all your tests via:
19
-
20
- $ rake
14
+ Make sure bwoken is <a href="#installation">properly installed</a>. Then, build your project and run all your tests via:
21
15
 
22
- To run a single feature, add a RUN variable with the same name as your feature, ignoring the file extension:
16
+ <pre><code># will build and run all of your tests
17
+ $ rake
23
18
 
24
- $ RUN=focused_test rake iphone
19
+ # will run one file, relative to integration/coffeescript (note: no file extension)
20
+ $ RUN=iphone/focused_test rake
21
+ </code></pre>
25
22
 
26
- Or, to run the feature on both iphone and ipad
27
-
28
- $ RUN=focused_test rake
23
+ ### Simulator or Device?
29
24
 
25
+ To run bwoken tests on your device, just plug it in! And if you want to run tests in the simulator, just unplug it!
30
26
 
31
- ## Basic Installation
27
+ As of bwoken 1.2.0, you can pass <code>SIMULATOR=true</code> as an environment variable to force simulator use even if your device is plugged in:
32
28
 
33
- N.B.: This is the simplest way to get started and try out bwoken, but the recommended method is with RVM (see below).
34
- You can use this method without affecting your ability to later use RVM.
29
+ <pre><code># without a device connected, will run on the simulator:
30
+ $ rake
35
31
 
36
- Ensure Xcode is up-to-date.
32
+ # with a device connected, will run on the device:
33
+ $ rake
37
34
 
38
- Install bundler and init:
35
+ # with a device connected, will run on the simulator:
36
+ $ SIMULATOR=true rake
37
+ </code></pre>
39
38
 
40
- $ sudo gem install bundler
41
- $ bundle init
39
+ Your tests will look something like this:
42
40
 
43
- Add this line to your application's Gemfile:
41
+ <pre><code>$ rake
42
+ Building.............................................................................
43
+ .....................................................................................
44
+ .....................................................................................
45
+ .....................................................................................
46
+ .....................................................................................
47
+ .....................................................................................
48
+ .....................................................................................
49
+ ................................................................................
50
+ Build Successful!
44
51
 
45
- gem 'bwoken'
52
+ iphone favorites.js
53
+ Start: Favoriting a repository
54
+ Debug: tap tableViews["Repositories"].cells["CITravis by Travis-ci"]
55
+ Debug: tap navigationBar.rightButton
56
+ Debug: tap actionSheet.elements["Add"]
57
+ Debug: tap navigationBar.leftButton
58
+ Debug: tap navigationBar.elements["Favorites"]
59
+ Debug: navigationBar.elements["Favorites"].scrollToVisible
60
+ Debug: tap navigationBar.elements["All"]
61
+ Pass: Favoriting a repository
62
+ Start: Unfavoriting a repository
63
+ Debug: tap navigationBar.elements["Favorites"]
64
+ Debug: tap tableViews["Repositories"].cells["CITravis by Travis-ci"]
65
+ Debug: tap navigationBar.rightButton
66
+ Debug: tap actionSheet.elements["Remove"]
67
+ Debug: tap navigationBar.leftButton
68
+ Debug: should be true null
69
+ Debug: tap navigationBar.elements["All"]
70
+ Pass: Unfavoriting a repository
46
71
 
47
- Ensure your $PATH variable has bundler_bin at the front. This is usually done with .bash_profile:
72
+ Complete
73
+ Duration: 23.419741s
74
+ </code></pre>
48
75
 
49
- $ echo 'export PATH=bundler_bin:$PATH' >> ~/.bash_profile
50
76
 
51
- Restart your terminal.
77
+ ### Like Javascript?
52
78
 
53
- And then execute:
79
+ Sometimes we'd like to have some javascript help us out. For example, what if you'd like <a href="http://underscorejs.org">Underscore.js</a> in your test suite? Simple! Just put it in <code>integration/javascript</code> and import it in your test:
54
80
 
55
- $ bundle --binstubs=bundler_bin
81
+ <pre><code>#import "../underscore.js"
82
+ </code></pre>
56
83
 
57
- Then, add the following line to your `Rakefile`:
58
84
 
59
- require 'bwoken/tasks'
85
+ ## Installation
60
86
 
61
- Initialize your bwoken file structure:
87
+ ### Create an iOS project
62
88
 
63
- $ rake bwoken:init
89
+ If you don't have an iOS project already, go ahead and create it. If you already have a project, no worries: you can install bwoken at any point.
64
90
 
65
91
  Ensure your project is in a workspace rather than simply a project:
66
92
 
67
- * In Xcode, select File -> Save as workspace...
93
+ * In Xcode, select File -&gt; Save as workspace...
68
94
  * Save the workspace in the same directory as your .xcodeproj file
69
95
 
70
- We have tried this on a standard lion installation and it works.
71
- If you have issues please open an [issue](/bendyworks/bwoken/issues) and let us know.
96
+ Note: This is done automatically if you use <a href="http://cocoapods.org/">CocoaPods</a>. I highly suggest you do!
72
97
 
73
-
74
- ## Installation with rvm (recommended)
98
+ ### Prerequisites
75
99
 
76
100
  Ensure Xcode is up-to-date.
77
101
 
78
- Add an .rvmrc file to your project, such as:
79
-
80
- $ echo 'rvm use 1.9.3@MyProject --create' >> .rvmrc
81
-
82
- Install bundler and init:
83
-
84
- $ gem install bundler
85
- $ bundle init
102
+ Install rvm via <a href="https://rvm.io/rvm/install/">the instructions</a>. Ensure your after_cd_bundler rvm hook is enabled:
86
103
 
87
- Add this line to your application's Gemfile:
104
+ <pre><code>$ chmod u+x ~/.rvm/hooks/after_cd_bundler
105
+ </code></pre>
88
106
 
89
- gem 'bwoken'
107
+ ### Installation
90
108
 
91
- And then execute:
109
+ In the terminal, inside the directory of your project (e.g., you should see a <code>ProjectName.xcodeproj</code> file), create an <code>.rvmrc</code> file and trigger its use:
92
110
 
93
- $ bundle --binstubs=bundler_bin
111
+ <pre><code>$ echo 'rvm use 1.9.3@my_project' &gt; .rvmrc
112
+ $ rvm rvmrc trust .rvmrc
113
+ $ . .rvmrc
114
+ </code></pre>
94
115
 
95
- Ensure your after_cd_bundler rvm hook is enabled:
116
+ Install bundler (a ruby library dependency manager) and init:
96
117
 
97
- $ chmod u+x ~/.rvm/hooks/after_cd_bundler
118
+ <pre><code>$ gem install bundler
119
+ $ bundle init
120
+ </code></pre>
98
121
 
99
- Then, add the following line to your `Rakefile`:
122
+ This will create a <code>Gemfile</code>. Add bwoken to it and bundle:
100
123
 
101
- require 'bwoken/tasks'
124
+ <pre><code>$ echo "gem 'bwoken'" &gt;&gt; Gemfile
125
+ $ bundle
126
+ </code></pre>
102
127
 
103
- Initialize your bwoken file structure:
128
+ Then, create a simple <code>Rakefile</code> and initialize your bwoken file structure:
104
129
 
105
- $ rake bwoken:init
106
-
107
- Ensure your project is in a workspace rather than simply a project:
108
-
109
- * In Xcode, select File -> Save as workspace...
110
- * Save the workspace in the same directory as your .xcodeproj file
130
+ <pre><code>$ echo "require 'bwoken/tasks'" &gt; Rakefile
131
+ $ rake bwoken:init
132
+ </code></pre>
111
133
 
134
+ Now, you can start <a href="#usage">using it!</a>
112
135
 
113
136
  ## Contributing
114
137
 
@@ -1,2 +1,3 @@
1
1
  GCC_PREPROCESSOR_DEFINITIONS = $(inherited) TEST_MODE=1
2
2
  CONFIGURATION_BUILD_DIR = $(BWOKEN_CONFIGURATION_BUILD_DIR)
3
+ ONLY_ACTIVE_ARCH = NO
@@ -1,3 +1,3 @@
1
1
  module Bwoken
2
- VERSION = "1.2.0" unless defined?(::Bwoken::VERSION)
2
+ VERSION = "1.2.1" unless defined?(::Bwoken::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwoken
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: 1445511706226898183
149
+ hash: 4120650318918644756
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 1445511706226898183
158
+ hash: 4120650318918644756
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.25