calabash-android 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,10 @@ def calabash_build(args)
9
9
  @test_server_dir = File.join(workspace_dir, 'test-server')
10
10
  FileUtils.cp_r(test_server_template_dir, workspace_dir)
11
11
 
12
+ ant_executable = (is_windows? ? "ant.bat" : "ant")
12
13
  Dir.chdir(@test_server_dir) {
13
14
  args = [
14
- "ant",
15
+ ant_executable,
15
16
  "clean",
16
17
  "package",
17
18
  "-Dtested.package_name=#{@settings["package_name"]}",
@@ -33,7 +34,11 @@ def calabash_build(args)
33
34
  }
34
35
 
35
36
  test_apk = File.join(@test_server_dir, "bin", "Test.apk")
36
- FileUtils.cp(test_apk, @support_dir)
37
+ FileUtils.cp(test_apk, File.join(@support_dir, "Test.apk"))
37
38
  puts "Done building the test server. Moved it to features/support/Test.apk"
38
39
  end
39
40
  end
41
+
42
+ def is_windows?
43
+ ENV["OS"] == "Windows_NT"
44
+ end
@@ -17,13 +17,16 @@ def print_usage
17
17
  prints more detailed help information.
18
18
  gen
19
19
  generate a features folder structure.
20
- setup will ask you some questions about you application, development
20
+ setup
21
+ sets up the current folder to run calabash against your
22
+ application.
23
+ Will ask you some questions about you application, development
21
24
  environment and key store to user for signing.
22
-
23
- build builds the test server that will be used when testing the app.
25
+ build
26
+ builds the test server that will be used when testing the app.
24
27
  You need to run this command everytime you make changes to app.
25
-
26
- run runs Cucumber in the current folder with the enviroment needed.
28
+ run
29
+ runs Cucumber in the current folder with the enviroment needed.
27
30
  EOF
28
31
  end
29
32
 
@@ -12,6 +12,7 @@ def calabash_run(args)
12
12
 
13
13
 
14
14
  cmd = "cucumber #{ARGV.join(" ")} #{env}"
15
+ puts cmd
15
16
  IO.popen(cmd) do |io|
16
17
  io.each { |s| print s }
17
18
  end
@@ -11,10 +11,12 @@ Usage: calabash-android <command-name> [parameters]
11
11
  setting up calabash to ensure that the features folder contains
12
12
  the right step definitions and environment to run with cucumber.
13
13
 
14
- setup will ask you some questions about you application, development
14
+ setup sets up the current folder to run calabash against your
15
+ application.
16
+ Will ask you some questions about you application, development
15
17
  environment and key store to user for signing.
16
18
 
17
- build builds the test server that will be used when testing the app.
19
+ build builds the test server that will be used when testing the app.
18
20
  You need to run this command everytime you make changes to app.
19
21
 
20
- run runs Cucumber in the current folder with the enviroment needed.
22
+ run runs Cucumber in the current folder with the enviroment needed.
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.0.5"
4
- FRAMEWORK_VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
+ FRAMEWORK_VERSION = "0.0.6"
5
5
  end
6
6
  end
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonas Maturana Larsen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-01 00:00:00 Z
18
+ date: 2012-05-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cucumber