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 +81 -58
- data/lib/bwoken/configs/bwoken.xcconfig +1 -0
- data/lib/bwoken/version.rb +1 -1
- metadata +3 -3
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
|
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
|
-
|
16
|
+
<pre><code># will build and run all of your tests
|
17
|
+
$ rake
|
23
18
|
|
24
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
34
|
-
|
29
|
+
<pre><code># without a device connected, will run on the simulator:
|
30
|
+
$ rake
|
35
31
|
|
36
|
-
|
32
|
+
# with a device connected, will run on the device:
|
33
|
+
$ rake
|
37
34
|
|
38
|
-
|
35
|
+
# with a device connected, will run on the simulator:
|
36
|
+
$ SIMULATOR=true rake
|
37
|
+
</code></pre>
|
39
38
|
|
40
|
-
|
41
|
-
$ bundle init
|
39
|
+
Your tests will look something like this:
|
42
40
|
|
43
|
-
|
41
|
+
<pre><code>$ rake
|
42
|
+
Building.............................................................................
|
43
|
+
.....................................................................................
|
44
|
+
.....................................................................................
|
45
|
+
.....................................................................................
|
46
|
+
.....................................................................................
|
47
|
+
.....................................................................................
|
48
|
+
.....................................................................................
|
49
|
+
................................................................................
|
50
|
+
Build Successful!
|
44
51
|
|
45
|
-
|
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
|
-
|
72
|
+
Complete
|
73
|
+
Duration: 23.419741s
|
74
|
+
</code></pre>
|
48
75
|
|
49
|
-
$ echo 'export PATH=bundler_bin:$PATH' >> ~/.bash_profile
|
50
76
|
|
51
|
-
|
77
|
+
### Like Javascript?
|
52
78
|
|
53
|
-
|
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
|
-
|
81
|
+
<pre><code>#import "../underscore.js"
|
82
|
+
</code></pre>
|
56
83
|
|
57
|
-
Then, add the following line to your `Rakefile`:
|
58
84
|
|
59
|
-
|
85
|
+
## Installation
|
60
86
|
|
61
|
-
|
87
|
+
### Create an iOS project
|
62
88
|
|
63
|
-
|
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
|
93
|
+
* In Xcode, select File -> Save as workspace...
|
68
94
|
* Save the workspace in the same directory as your .xcodeproj file
|
69
95
|
|
70
|
-
|
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
|
-
|
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
|
-
|
104
|
+
<pre><code>$ chmod u+x ~/.rvm/hooks/after_cd_bundler
|
105
|
+
</code></pre>
|
88
106
|
|
89
|
-
|
107
|
+
### Installation
|
90
108
|
|
91
|
-
|
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
|
-
|
111
|
+
<pre><code>$ echo 'rvm use 1.9.3@my_project' > .rvmrc
|
112
|
+
$ rvm rvmrc trust .rvmrc
|
113
|
+
$ . .rvmrc
|
114
|
+
</code></pre>
|
94
115
|
|
95
|
-
|
116
|
+
Install bundler (a ruby library dependency manager) and init:
|
96
117
|
|
97
|
-
|
118
|
+
<pre><code>$ gem install bundler
|
119
|
+
$ bundle init
|
120
|
+
</code></pre>
|
98
121
|
|
99
|
-
|
122
|
+
This will create a <code>Gemfile</code>. Add bwoken to it and bundle:
|
100
123
|
|
101
|
-
|
124
|
+
<pre><code>$ echo "gem 'bwoken'" >> Gemfile
|
125
|
+
$ bundle
|
126
|
+
</code></pre>
|
102
127
|
|
103
|
-
|
128
|
+
Then, create a simple <code>Rakefile</code> and initialize your bwoken file structure:
|
104
129
|
|
105
|
-
|
106
|
-
|
107
|
-
|
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'" > 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
|
|
data/lib/bwoken/version.rb
CHANGED
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.
|
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:
|
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:
|
158
|
+
hash: 4120650318918644756
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
161
|
rubygems_version: 1.8.25
|