calabash-android 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ 0.0.10:
2
+ Added -v and --verbose options to calabash-android run.
3
+ This will turn on verbose logging for Calabash as well as Cucumber.
4
+ Default logging is much less verbose now but can be even better.
5
+ 0.0.9:
6
+ Moved from Robotium 2.5 to 3.2.1
1
7
  0.0.8:
2
8
  Added colors to Cucumber output
3
9
 
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  def print_usage
13
13
  puts <<EOF
14
- Usage: calabash-android <command-name> [parameters]
14
+ Usage: calabash-android <command-name> [parameters] [options]
15
15
  <command-name> can be one of
16
16
  help
17
17
  prints more detailed help information.
@@ -27,6 +27,11 @@ def print_usage
27
27
  You need to run this command every time you make changes to the app.
28
28
  run
29
29
  runs Cucumber in the current folder with the enviroment needed.
30
+
31
+
32
+ <options> can be
33
+ -v, --verbose
34
+ Turns on verbose logging
30
35
  EOF
31
36
  end
32
37
 
@@ -23,7 +23,7 @@ def calabash_setup
23
23
  @settings[:keystore_alias_password] = "android"
24
24
 
25
25
  puts "Do you want to specify a keystore for signing the test app?"
26
- puts "If now we will be using #{@settings[:keystore_location]}"
26
+ puts "If not we will be using #{@settings[:keystore_location]}"
27
27
  puts "Please answer yes (y) or no (n)"
28
28
 
29
29
  if ['yes', 'y'].include? STDIN.gets.chomp
@@ -1,4 +1,4 @@
1
- Usage: calabash-android <command-name> [parameters]
1
+ Usage: calabash-android <command-name> [parameters] [options]
2
2
  <command-name> can be one of
3
3
  help
4
4
  gen
@@ -19,4 +19,8 @@ Usage: calabash-android <command-name> [parameters]
19
19
  build builds the test server that will be used when testing the app.
20
20
  You need to run this command every time you make changes to the app.
21
21
 
22
- run runs Cucumber in the current folder with the enviroment needed.
22
+ run runs Cucumber in the current folder with the enviroment needed.
23
+
24
+
25
+ Options:
26
+ -v, --verbose Turns on verbose logging
@@ -95,7 +95,8 @@ To scroll up
95
95
 
96
96
  Then /^I scroll up$/
97
97
 
98
- Then /^I select "([^\"]*)" from the menu$/
98
+ To open the menu and press the specified text
99
+ Then /^I select "([^\"]*)" from the menu$/
99
100
 
100
101
  Touching
101
102
  --------
@@ -130,9 +131,10 @@ Will look for the specified text and press it if found.
130
131
 
131
132
  Then /^I press list item number (\d+)$/
132
133
  Will press the specified list item in the first visible list.
134
+
133
135
  Then /^I long press list item number (\d+)$/
134
136
 
135
- Will lon press the specified list item in the first visible list.
137
+ Will long press the specified list item in the first visible list.
136
138
 
137
139
  Then /^I click on screen (\d+)% from the left and (\d+)% from the top$/
138
140
  Simulates a touch on the screen at the specified location.
@@ -11,7 +11,7 @@ module Operations
11
11
 
12
12
 
13
13
  def log(message)
14
- $stdout.puts "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{message}"
14
+ $stdout.puts "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{message}" if (ARGV.include? "-v" or ARGV.include? "--verbose")
15
15
  end
16
16
 
17
17
  def take_screenshot
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.0.8"
4
- FRAMEWORK_VERSION = "0.0.8"
3
+ VERSION = "0.0.10"
4
+ FRAMEWORK_VERSION = "0.0.10"
5
5
  end
6
6
  end
@@ -5,6 +5,6 @@
5
5
  <classpathentry kind="src" path="assets"/>
6
6
  <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
7
7
  <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
8
- <classpathentry kind="lib" path="libs/robotium-solo-2.5.jar"/>
8
+ <classpathentry kind="lib" path="libs/robotium-solo-3.2.1.jar"/>
9
9
  <classpathentry kind="output" path="bin/classes"/>
10
10
  </classpath>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonas Maturana Larsen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-05-16 00:00:00 -03:00
13
+ date: 2012-05-18 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -113,7 +113,7 @@ files:
113
113
  - test-server/instrumentation-backend/AndroidManifest.xml
114
114
  - test-server/instrumentation-backend/assets/foo.bar
115
115
  - test-server/instrumentation-backend/gen/com/lesspainful/simpleui/test/R.java
116
- - test-server/instrumentation-backend/libs/robotium-solo-2.5.jar
116
+ - test-server/instrumentation-backend/libs/robotium-solo-3.2.1.jar
117
117
  - test-server/instrumentation-backend/project.properties
118
118
  - test-server/instrumentation-backend/res/drawable-hdpi/ic_launcher.png
119
119
  - test-server/instrumentation-backend/res/drawable-ldpi/ic_launcher.png