motion-calabash 0.9.137 → 0.9.138
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Allows RubyMotion projects to easily use Calabash iOS for automated acceptance
|
4
4
|
testing.
|
5
5
|
|
6
|
-
For Calabash see: http://calaba.sh
|
6
|
+
For information about Calabash see: http://calaba.sh
|
7
7
|
|
8
8
|
== Requirements
|
9
9
|
|
@@ -20,17 +20,54 @@ For Calabash see: http://calaba.sh
|
|
20
20
|
require 'rubygems'
|
21
21
|
require 'motion-calabash'
|
22
22
|
|
23
|
+
If you're using a Gemfile in your project (which you probably should), please also add `gem 'motion.calabash'` (possibly a version) to this file.
|
24
|
+
|
25
|
+
|
23
26
|
== Usage
|
24
27
|
|
25
28
|
motion-calabash introduces a +calabash+ Rake-task namespace to your project.
|
26
|
-
The namespace currently contains
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
The namespace currently contains three tasks: +scaffold+, +run+, +console+.
|
30
|
+
|
31
|
+
The +scaffold+ target will generate the file structure and launch hooks needed to run calabash tests on your RubyMotion app.
|
32
|
+
|
33
|
+
$ krukow:~/github/rubymotion-inspect$ rake calabash:scaffold
|
34
|
+
Run Scaffolding features
|
35
|
+
Info Run rake calabash:run to try
|
36
|
+
Copy launch file /Users/krukow/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/motion-calabash-0.9.137/scripts/launch.rb to features/support/launch.rb
|
37
|
+
|
38
|
+
$ krukow:~/github/rubymotion-inspect$ tree features
|
39
|
+
features
|
40
|
+
├── my_first.feature
|
41
|
+
├── step_definitions
|
42
|
+
│ ├── calabash_steps.rb
|
43
|
+
│ └── my_first_steps.rb
|
44
|
+
└── support
|
45
|
+
├── env.rb
|
46
|
+
├── hooks.rb
|
47
|
+
└── launch.rb
|
48
|
+
|
49
|
+
|
50
|
+
The +run+ task can be used to run your suite of Calabash tests on your development build. You can run on simulator or on a USB connected device.
|
51
|
+
|
52
|
+
You can supply the following parameters +target+, +device+, +os+, +args+
|
31
53
|
|
32
54
|
$ rake calabash:run
|
33
|
-
$ rake calabash:run
|
34
|
-
$ rake calabash:run
|
35
|
-
$ rake calabash:run
|
55
|
+
$ rake calabash:run simulator
|
56
|
+
$ rake calabash:run device
|
57
|
+
$ rake calabash:run simulator target=5.1
|
58
|
+
$ rake calabash:run simulator target=6.0 device=ipad
|
59
|
+
$ rake calabash:run simulator args="features/my_first.feature --tags @a"
|
60
|
+
|
61
|
+
The +console+ task gives you an interactive console where you can try out Calabash functions and explore your app. It is very useful when writing automated tests. See also: [Explore interactively!](https://github.com/calabash/calabash-ios/wiki/01-Getting-started-guide) and [Ruby API](https://github.com/calabash/calabash-ios/wiki/03.5-Calabash-iOS-Ruby-API).
|
62
|
+
|
36
63
|
$ rake calabash:console
|
64
|
+
|
65
|
+
(+device+ and +os+ params apply too).
|
66
|
+
|
67
|
+
== Examples
|
68
|
+
|
69
|
+
Two sample projects
|
70
|
+
|
71
|
+
[Beers](https://github.com/krukow/motion-calabash-inspect2013)
|
72
|
+
|
73
|
+
[RubyMotion-Inspect](https://github.com/calabash/rubymotion-inspect)
|
Binary file
|
@@ -95,7 +95,7 @@ namespace 'calabash' do
|
|
95
95
|
task :console do
|
96
96
|
# Retrieve configuration settings.
|
97
97
|
calabash_env = gather_calabash_env
|
98
|
-
|
98
|
+
|
99
99
|
App.info 'Run', "#{calabash_env} calabash-ios console"
|
100
100
|
|
101
101
|
exec(calabash_env,"calabash-ios","console")
|
@@ -117,7 +117,6 @@ namespace 'calabash' do
|
|
117
117
|
puts "Copy launch file #{launch_path} to features/support/launch.rb"
|
118
118
|
FileUtils.cp(launch_path,File.join('features','support','launch.rb'))
|
119
119
|
|
120
|
-
|
121
120
|
end
|
122
121
|
|
123
122
|
end
|
data/motion-calabash.gemspec
CHANGED
@@ -7,12 +7,12 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.author = 'Karl Krukow'
|
8
8
|
s.email = 'karl@lesspainful.com'
|
9
9
|
s.homepage = 'http://www.lesspainful.com'
|
10
|
-
s.version = '0.9.
|
10
|
+
s.version = '0.9.138'
|
11
11
|
s.summary = %q{Calabash support for RubyMotion}
|
12
12
|
s.description = %q{This linkes-in calabash for iOS}
|
13
|
-
s.files = ["lib/framework/libcalabashuni-0.9.
|
13
|
+
s.files = ["lib/framework/libcalabashuni-0.9.138.a"].concat(`git ls-files`.split("\n"))
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
|
16
|
-
s.add_dependency("calabash-cucumber", "0.9.
|
16
|
+
s.add_dependency("calabash-cucumber", "0.9.138")
|
17
17
|
|
18
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-calabash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.138
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: calabash-cucumber
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.9.
|
21
|
+
version: 0.9.138
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,14 +26,14 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.138
|
30
30
|
description: This linkes-in calabash for iOS
|
31
31
|
email: karl@lesspainful.com
|
32
32
|
executables: []
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/framework/libcalabashuni-0.9.
|
36
|
+
- lib/framework/libcalabashuni-0.9.138.a
|
37
37
|
- .gitignore
|
38
38
|
- LICENSE
|
39
39
|
- README.rdoc
|