motion-frank 1.1.8.0 → 1.1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +43 -5
- data/lib/motion/project/frank.rb +4 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -1,9 +1,47 @@
|
|
1
|
-
|
1
|
+
motion-frank
|
2
|
+
============
|
2
3
|
|
3
|
-
|
4
|
+
A gem to use integration of [frank-cucumber](http://testingwithfrank.com/) into RubyMotion projects.
|
4
5
|
|
5
|
-
|
6
|
+
#### Installation
|
7
|
+
|
8
|
+
```bash
|
9
|
+
> gem install motion-frank
|
10
|
+
```
|
11
|
+
or better yet, use Bundler with rvm or rbenv.
|
12
|
+
|
13
|
+
#### Getting started
|
14
|
+
|
15
|
+
In your Rakefile:
|
16
|
+
```ruby
|
17
|
+
require 'motion-frank'
|
18
|
+
```
|
19
|
+
|
20
|
+
Then from the command line you can see the new tasks:
|
21
|
+
```bash
|
22
|
+
> rake -T
|
23
|
+
rake frank # Shorthand for frank:run
|
24
|
+
rake frank:init_features # Create first feature files
|
25
|
+
rake frank:run # Build app for simulator, launch simulator and run features
|
26
|
+
rake frank:symbiote # Run app with symbiote enabled
|
27
|
+
```
|
28
|
+
|
29
|
+
#### Starter features
|
30
|
+
|
31
|
+
Before using ```rake frank:run``` you'll need some feature files to start. Use ```rake frank:init_features``` to create these.
|
32
|
+
|
33
|
+
#### Symbiote
|
34
|
+
|
35
|
+
Symbiote is a web-based tool for inspecting the state of your native iOS application. See [the Symbiote site](https://github.com/TestingWithFrank/symbiote) for more details.
|
36
|
+
|
37
|
+
Run ```rake frank:symbiote``` to enable symbiote in the simulator, and visit http://localhost:37265 to browse your app.
|
38
|
+
|
39
|
+
#### Versioning
|
40
|
+
|
41
|
+
The versions of this gem will track the version of frank-cucumber, so that 1.1.8.* requires frank-cucumber 1.1.8.
|
42
|
+
|
43
|
+
#### Credits
|
44
|
+
|
45
|
+
Thanks to Caleb Cohoon for writing very useful [instructions](http://calebcohoon.blogspot.com/2012/06/test-rubymotion-apps-using-cucumber.html) that this gem is based on.
|
6
46
|
|
7
|
-
rake frank:run (or rake frank) will run the features
|
8
47
|
|
9
|
-
rake frank:symbiote will run the simulator with symbiote enabled; go to http://localhost:37265 to browse your app
|
data/lib/motion/project/frank.rb
CHANGED
@@ -7,8 +7,10 @@ require 'cucumber/rake/task'
|
|
7
7
|
frank_skeleton = File.join(Gem.loaded_specs['frank-cucumber'].full_gem_path, 'frank-skeleton')
|
8
8
|
|
9
9
|
Motion::Project::App.setup do |app|
|
10
|
-
app.
|
11
|
-
|
10
|
+
app.development do
|
11
|
+
app.vendor_project(frank_skeleton, :static)
|
12
|
+
app.frameworks << 'CFNetwork'
|
13
|
+
end
|
12
14
|
end
|
13
15
|
|
14
16
|
namespace 'frank' do
|