calabash-android 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +6 -0
- data/bin/calabash-android +2 -3
- data/bin/calabash-android-helpers.rb +2 -2
- data/doc/calabash-android-help.txt +2 -2
- data/lib/calabash-android/version.rb +1 -2
- metadata +74 -87
- data/bin/calabash-android-submit.rb +0 -48
data/CHANGES.txt
CHANGED
data/bin/calabash-android
CHANGED
@@ -9,7 +9,6 @@ require File.join(File.dirname(__FILE__), "calabash-android-generate")
|
|
9
9
|
require File.join(File.dirname(__FILE__), "calabash-android-build")
|
10
10
|
require File.join(File.dirname(__FILE__), "calabash-android-run")
|
11
11
|
require File.join(File.dirname(__FILE__), "calabash-android-setup")
|
12
|
-
require File.join(File.dirname(__FILE__), "calabash-android-submit")
|
13
12
|
|
14
13
|
@features_dir = File.join(FileUtils.pwd, "features")
|
15
14
|
@support_dir = File.join(@features_dir, "support")
|
@@ -51,8 +50,8 @@ elsif cmd == 'gen'
|
|
51
50
|
elsif cmd == 'setup'
|
52
51
|
calabash_setup
|
53
52
|
exit 0
|
54
|
-
elsif cmd == '
|
55
|
-
|
53
|
+
elsif cmd == 'version'
|
54
|
+
puts Calabash::Android::VERSION
|
56
55
|
exit 0
|
57
56
|
else
|
58
57
|
print_usage
|
@@ -23,8 +23,8 @@ def print_usage
|
|
23
23
|
builds the test server that will be used when testing the app.
|
24
24
|
run <apk>
|
25
25
|
runs Cucumber in the current folder with the enviroment needed.
|
26
|
-
|
27
|
-
|
26
|
+
version
|
27
|
+
prints the gem version
|
28
28
|
|
29
29
|
<options> can be
|
30
30
|
-v, --verbose
|
@@ -5,7 +5,7 @@ Usage: calabash-android <command-name> [parameters] [options]
|
|
5
5
|
setup
|
6
6
|
build
|
7
7
|
run [parameters]
|
8
|
-
|
8
|
+
version
|
9
9
|
|
10
10
|
Commands:
|
11
11
|
gen creates a skeleton features dir. This is usually used once when
|
@@ -18,7 +18,7 @@ Usage: calabash-android <command-name> [parameters] [options]
|
|
18
18
|
|
19
19
|
run runs Cucumber in the current folder with the enviroment needed.
|
20
20
|
|
21
|
-
|
21
|
+
version prints the gem version
|
22
22
|
|
23
23
|
|
24
24
|
Options:
|
metadata
CHANGED
@@ -1,89 +1,88 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.14
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 13
|
10
|
-
version: 0.2.13
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jonas Maturana Larsen
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-09-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: cucumber
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: json
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: json
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
47
38
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: slowhandcuke
|
51
39
|
prerelease: false
|
52
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: slowhandcuke
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
53
49
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
61
54
|
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: retriable
|
65
55
|
prerelease: false
|
66
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: retriable
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
67
65
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
75
70
|
type: :runtime
|
76
|
-
|
77
|
-
|
78
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: ! 'calabash-android drives tests for native and hybrid Android apps. '
|
79
|
+
email:
|
79
80
|
- jonas@lesspainful.com
|
80
|
-
executables:
|
81
|
+
executables:
|
81
82
|
- calabash-android
|
82
83
|
extensions: []
|
83
|
-
|
84
84
|
extra_rdoc_files: []
|
85
|
-
|
86
|
-
files:
|
85
|
+
files:
|
87
86
|
- .calabash_settings
|
88
87
|
- CHANGES.txt
|
89
88
|
- Gemfile
|
@@ -96,7 +95,6 @@ files:
|
|
96
95
|
- bin/calabash-android-helpers.rb
|
97
96
|
- bin/calabash-android-run.rb
|
98
97
|
- bin/calabash-android-setup.rb
|
99
|
-
- bin/calabash-android-submit.rb
|
100
98
|
- calabash-android.gemspec
|
101
99
|
- doc/calabash-android-help.txt
|
102
100
|
- epl-v10.html
|
@@ -655,39 +653,28 @@ files:
|
|
655
653
|
- test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/package-info.java
|
656
654
|
- test-server/calabash-js/src/calabash.js
|
657
655
|
- test-server/calabash-js/src/set_text.js
|
658
|
-
has_rdoc: true
|
659
656
|
homepage: http://github.com/calabash
|
660
657
|
licenses: []
|
661
|
-
|
662
658
|
post_install_message:
|
663
659
|
rdoc_options: []
|
664
|
-
|
665
|
-
require_paths:
|
660
|
+
require_paths:
|
666
661
|
- lib
|
667
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
662
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
668
663
|
none: false
|
669
|
-
requirements:
|
670
|
-
- -
|
671
|
-
- !ruby/object:Gem::Version
|
672
|
-
|
673
|
-
|
674
|
-
- 0
|
675
|
-
version: "0"
|
676
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
664
|
+
requirements:
|
665
|
+
- - ! '>='
|
666
|
+
- !ruby/object:Gem::Version
|
667
|
+
version: '0'
|
668
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
677
669
|
none: false
|
678
|
-
requirements:
|
679
|
-
- -
|
680
|
-
- !ruby/object:Gem::Version
|
681
|
-
|
682
|
-
segments:
|
683
|
-
- 0
|
684
|
-
version: "0"
|
670
|
+
requirements:
|
671
|
+
- - ! '>='
|
672
|
+
- !ruby/object:Gem::Version
|
673
|
+
version: '0'
|
685
674
|
requirements: []
|
686
|
-
|
687
675
|
rubyforge_project:
|
688
|
-
rubygems_version: 1.
|
676
|
+
rubygems_version: 1.8.24
|
689
677
|
signing_key:
|
690
678
|
specification_version: 3
|
691
679
|
summary: Client for calabash-android for automated functional testing on Android
|
692
680
|
test_files: []
|
693
|
-
|
@@ -1,48 +0,0 @@
|
|
1
|
-
def calabash_submit(args)
|
2
|
-
require "rubygems"
|
3
|
-
require 'tempfile'
|
4
|
-
require 'json'
|
5
|
-
|
6
|
-
if is_windows?
|
7
|
-
puts "Submitting to LessPainful.com from Windows is currently not supported"
|
8
|
-
exit
|
9
|
-
end
|
10
|
-
|
11
|
-
|
12
|
-
if args.size != 2
|
13
|
-
puts "Usage: calabash-android submit apk_file secret"
|
14
|
-
exit
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
apk_file = args[0]
|
19
|
-
puts "No such file '#{apk_file}'" unless File.exist?(apk_file)
|
20
|
-
secret = args[1]
|
21
|
-
|
22
|
-
unless File.exist?("features/support/Test.apk")
|
23
|
-
puts "No test server in features/support/"
|
24
|
-
puts "Please run 'calabash-android build' and then retry"
|
25
|
-
exit
|
26
|
-
end
|
27
|
-
|
28
|
-
archive_path = "#{Tempfile.new("archive").path}.zip"
|
29
|
-
puts "Creating zip file"
|
30
|
-
system("zip -r -o #{archive_path} features")
|
31
|
-
|
32
|
-
puts "Uploading to www.lesspainful.com"
|
33
|
-
puts 'curl -F "secret=#{secret}" -F "app=@#{apk_file}" -F "env=@#{archive_path}" https://www.lesspainful.com/calabash_android_upload'
|
34
|
-
result = `curl -F "secret=#{secret}" -F "app=@#{apk_file}" -F "env=@#{archive_path}" https://www.lesspainful.com/calabash_android_upload`
|
35
|
-
|
36
|
-
if is_json? result
|
37
|
-
json_result = JSON.parse(result)
|
38
|
-
puts "Test status is '#{json_result['status']}"
|
39
|
-
puts "Test id is '#{json_result['id']}"
|
40
|
-
puts "You can see the test result here: #{json_result['url']}"
|
41
|
-
puts "You can pull the status by using this command:"
|
42
|
-
puts "curl -F \"secret=#{secret}\" -F \"id=#{json_result['id']}\" https://www.lesspainful.com/cmd_status"
|
43
|
-
else
|
44
|
-
puts result
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
end
|