calabash-android 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -1,3 +1,6 @@
1
+ 0.0.15:
2
+ Prefixes screenshots with feature name
3
+
1
4
  0.0.14:
2
5
  Added 'calabash-android submit'
3
6
  Will submit your apk and features to www.lesspainful.com
@@ -15,12 +15,15 @@ module Operations
15
15
  end
16
16
 
17
17
  def take_screenshot
18
+ path = ENV["SCREENSHOT_PATH_PREFIX"] || "results"
19
+ FileUtils.mkdir_p path unless Dir.exists? path
20
+ filename_prefix = FeatureNameMemory.feature_name.gsub(/\s+/, '_').downcase
18
21
  begin
19
22
  Timeout.timeout(30) do
20
- file_name = "#{ENV['SCREENSHOT_PATH_PREFIX']}screenshot_#{StepCounter.step_line}.png"
23
+ file_name = "#{path}/#{filename_prefix}_#{StepCounter.step_line}.png"
21
24
  log "Taking screenshoot to #{file_name} from device: #{ENV['ADB_DEVICE_ARG']}"
22
25
  system("java -jar #{File.dirname(__FILE__)}/lib/screenShotTaker.jar #{file_name} #{ENV['ADB_DEVICE_ARG']}")
23
- log "Screenshot taken"
26
+ log "Screenshot stored in: #{file_name}"
24
27
  end
25
28
  rescue Timeout::Error
26
29
  raise Exception, "take_screenshot timed out"
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.0.14"
4
- FRAMEWORK_VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
+ FRAMEWORK_VERSION = "0.0.15"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: