calabash-android 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +5 -1
- data/bin/calabash-android-build.rb +2 -2
- data/bin/calabash-android-helpers.rb +1 -20
- data/bin/calabash-android-setup.rb +7 -27
- data/doc/calabash-android-help.txt +2 -6
- data/lib/calabash-android/version.rb +2 -2
- metadata +3 -3
data/CHANGES.txt
CHANGED
@@ -19,9 +19,9 @@ def calabash_build(app)
|
|
19
19
|
"package",
|
20
20
|
"-Dtested.package_name=#{package_name(app)}",
|
21
21
|
"-Dtested.main_activity=#{main_activity(app)}",
|
22
|
-
"-Dtested.project.apk
|
22
|
+
"-Dtested.project.apk='#{app}'",
|
23
23
|
"-Dandroid.api.level=#{api_level}",
|
24
|
-
"-Dkey.store
|
24
|
+
"-Dkey.store='#{File.expand_path keystore["keystore_location"]}'",
|
25
25
|
"-Dkey.store.password=#{keystore["keystore_password"]}",
|
26
26
|
"-Dkey.alias=#{keystore["keystore_alias"]}",
|
27
27
|
"-Dkey.alias.password=#{keystore["keystore_alias_password"]}",
|
@@ -18,13 +18,9 @@ def print_usage
|
|
18
18
|
gen
|
19
19
|
generate a features folder structure.
|
20
20
|
setup
|
21
|
-
sets up
|
22
|
-
application.
|
23
|
-
Will ask you some questions about you application, development
|
24
|
-
environment and key store to user for signing.
|
21
|
+
sets up a non-default keystore to use with this test project.
|
25
22
|
build <apk>
|
26
23
|
builds the test server that will be used when testing the app.
|
27
|
-
You need to run this command every time you make changes to the app.
|
28
24
|
run <apk>
|
29
25
|
runs Cucumber in the current folder with the enviroment needed.
|
30
26
|
submit
|
@@ -46,18 +42,3 @@ end
|
|
46
42
|
def is_json?(str)
|
47
43
|
str[0..0] == '{'
|
48
44
|
end
|
49
|
-
|
50
|
-
def run_setup_if_settings_does_not_exist
|
51
|
-
unless File.exists?(".calabash_settings")
|
52
|
-
puts "Could not find .calabash_settings."
|
53
|
-
puts "Should I run calabash-android setup for you?"
|
54
|
-
puts "Please answer yes (y) or no (n)"
|
55
|
-
if ['yes', 'y'].include? STDIN.gets.chomp
|
56
|
-
calabash_setup
|
57
|
-
else
|
58
|
-
puts "Please run: calabash-android setup"
|
59
|
-
exit 1
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
@@ -7,33 +7,13 @@ def calabash_setup
|
|
7
7
|
end
|
8
8
|
@settings = {}
|
9
9
|
|
10
|
-
puts "
|
11
|
-
|
12
|
-
ask_for_setting(:
|
13
|
-
|
14
|
-
ask_for_setting(:
|
15
|
-
ask_for_setting(:
|
16
|
-
|
17
|
-
puts "It looks like you have the following versions installed:"
|
18
|
-
ask_for_setting(:api_level, platform_versions.join(", "))
|
19
|
-
|
20
|
-
@settings[:keystore_location] = "#{ENV["HOME"]}/.android/debug.keystore"
|
21
|
-
@settings[:keystore_password] = "android"
|
22
|
-
@settings[:keystore_alias] = "androiddebugkey"
|
23
|
-
@settings[:keystore_alias_password] = "android"
|
24
|
-
|
25
|
-
puts "Do you want to specify a keystore for signing the test app?"
|
26
|
-
puts "If not we will be using #{@settings[:keystore_location]}"
|
27
|
-
puts "Please answer yes (y) or no (n)"
|
28
|
-
|
29
|
-
if ['yes', 'y'].include? STDIN.gets.chomp
|
30
|
-
ask_for_setting(:keystore_location, "Please enter keystore location")
|
31
|
-
ask_for_setting(:keystore_password, "Please enter the password for the keystore")
|
32
|
-
ask_for_setting(:keystore_alias, "Please enter the alias")
|
33
|
-
ask_for_setting(:keystore_alias_password, "Please enter the password for the alias")
|
34
|
-
end
|
35
|
-
|
36
|
-
|
10
|
+
puts "Please enter keystore information to use a custom keystore instead of the default"
|
11
|
+
|
12
|
+
ask_for_setting(:keystore_location, "Please enter keystore location")
|
13
|
+
ask_for_setting(:keystore_password, "Please enter the password for the keystore")
|
14
|
+
ask_for_setting(:keystore_alias, "Please enter the alias")
|
15
|
+
ask_for_setting(:keystore_alias_password, "Please enter the password for the alias")
|
16
|
+
|
37
17
|
open('.calabash_settings', 'w') do |f|
|
38
18
|
f.puts @settings.to_json
|
39
19
|
end
|
@@ -12,14 +12,10 @@ Usage: calabash-android <command-name> [parameters] [options]
|
|
12
12
|
setting up calabash to ensure that the features folder contains
|
13
13
|
the right step definitions and environment to run with cucumber.
|
14
14
|
|
15
|
-
setup sets up
|
16
|
-
application.
|
17
|
-
Will ask you some questions about you application, development
|
18
|
-
environment and key store to user for signing.
|
15
|
+
setup sets up a non-default keystore to use with this test project.
|
19
16
|
|
20
17
|
build builds the test server that will be used when testing the app.
|
21
|
-
|
22
|
-
|
18
|
+
|
23
19
|
run runs Cucumber in the current folder with the enviroment needed.
|
24
20
|
|
25
21
|
submit submits an apk along with your features to www.lesspainful.com
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonas Maturana Larsen
|