flaky 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1230df6faa06f97954248aa5ecdce8c96ad43495
4
- data.tar.gz: e1af21e3f6f1f43893ae8d5305253299f095d6ae
3
+ metadata.gz: 5cf7699d7c56047300c55e11b4c245263887beeb
4
+ data.tar.gz: 06104c1442a6380ccb4dddd9ccb3c7aeaa92b09e
5
5
  SHA512:
6
- metadata.gz: 1b9041b34ae739d33093955b91379a0e0571d7a2f24c8df9570eaf97952c2635f779f994bd4ed529279be39c08686fc8ab18da7eca934d45fee5c17f173afcc0
7
- data.tar.gz: c314d8c08a8d2544ffaa1e80ae6edbf6647a2825bcd83371f4f1759d15496573423b06bf2ea41b636aefe4b02c968a4493b643dcb34dd246986b50e7e68e06ab
6
+ metadata.gz: a6b0bebc614feb4d5dbc7987b2d9108fcc82706b013e10ef85d68b7111da253ce45e5e864e9124784a8d84ef1c3272500030ee01a9e1c0a2a9fc367b05f7a98c
7
+ data.tar.gz: e59cb9e08e7d188e196a4e5fe649076d873e5d9e8af7038698e13393606342d8235235492913ba0f16872a3df4ebc0c87c2cc1c2853963dfca379359857f98ec
data/lib/flaky.rb CHANGED
@@ -9,7 +9,7 @@ require 'posix/spawn' # http://rubygems.org/gems/posix-spawn
9
9
  require 'digest/md5'
10
10
 
11
11
  module Flaky
12
- VERSION = '0.0.18' unless defined? ::Flaky::VERSION
12
+ VERSION = '0.0.19' unless defined? ::Flaky::VERSION
13
13
  DATE = '2013-12-23' unless defined? ::Flaky::DATE
14
14
 
15
15
  # require internal files
data/lib/flaky/run.rb CHANGED
@@ -49,6 +49,7 @@ module Flaky
49
49
 
50
50
  @result_dir = result_dir
51
51
  @result_file = File.join result_dir, 'result.txt'
52
+ @fail_file = File.join result_dir, 'fail.txt'
52
53
  end
53
54
 
54
55
  def report opts={}
@@ -56,6 +57,7 @@ module Flaky
56
57
  puts "\n" * 2
57
58
  success = ''
58
59
  failure = ''
60
+ failure_name_only = ''
59
61
  total_success = 0
60
62
  total_failure = 0
61
63
  @tests.each do |name, stats|
@@ -65,6 +67,7 @@ module Flaky
65
67
  line = "#{name}, runs: #{runs}, pass: #{pass}," +
66
68
  " fail: #{fail}\n"
67
69
  if fail > 0 && pass <= 0
70
+ failure_name_only += "#{File.basename(name)}\n"
68
71
  failure += line
69
72
  total_failure += 1
70
73
  else
@@ -81,10 +84,16 @@ module Flaky
81
84
  duration = ChronicDuration.output(duration.round) || '0s'
82
85
  out += "\nFinished in #{duration}"
83
86
 
84
- # overwrite file
85
- File.open(@result_file, 'w') do |f|
86
- f.puts out
87
- end if save_file
87
+ if save_file
88
+ File.open(@fail_file, 'w') do |f|
89
+ f.puts failure_name_only
90
+ end
91
+
92
+ # overwrite file
93
+ File.open(@result_file, 'w') do |f|
94
+ f.puts out
95
+ end
96
+ end
88
97
 
89
98
  puts out
90
99
  end
@@ -27,7 +27,7 @@ module Flaky
27
27
  file = test_file
28
28
  end
29
29
 
30
- raise "#{file} does not exist." if file.empty?
30
+ raise "#{name} does not exist." if file.empty?
31
31
 
32
32
  test_name = file.sub(current_dir + '/appium/', '')
33
33
  test_name = File.join(File.dirname(test_name), File.basename(test_name, '.*'))
data/release_notes.md CHANGED
@@ -1,3 +1,18 @@
1
+ #### v0.0.18 2013-12-23
2
+
3
+ - [2843ce6](https://github.com/appium/flaky/commit/2843ce61c0e9dd6f0cebac2e2ab1486044f4ec57) Release 0.0.18
4
+ - [83523b0](https://github.com/appium/flaky/commit/83523b010d480f37f36b83db2ba9c09516126150) Pull in system logs from /tmp/flaky_logs.txt
5
+ - [3d6a17d](https://github.com/appium/flaky/commit/3d6a17df86a92e2b6e138796b48554f84597ec6a) Improve Simulator clean up
6
+ - [0107484](https://github.com/appium/flaky/commit/01074843ed129cc1693f6a82957fe392ff5d9183) Add space
7
+ - [5a7ba98](https://github.com/appium/flaky/commit/5a7ba988dfd42341680ac2380c9125c38ed37438) Detect Sauce & appium_lib :export_session
8
+ - [e82eeac](https://github.com/appium/flaky/commit/e82eeac727b98485d4bcc77eb4be4af44e502cb9) Fix another Sauce crash
9
+ - [b9a43e4](https://github.com/appium/flaky/commit/b9a43e4e46c16be86a0a612367cfbb6555ad2f48) Fix another sauce crash
10
+ - [53daec2](https://github.com/appium/flaky/commit/53daec203399e529d76e1ed8cf7ff51b646169da) Fix Sauce crash
11
+ - [3cc9425](https://github.com/appium/flaky/commit/3cc9425f188b0023d3c58aa911a18e12db5ee48a) More Sauce updates
12
+ - [9cefd1e](https://github.com/appium/flaky/commit/9cefd1e9c0229f08d029a5fac7672cf4ac0ad00b) Support running on Sauce
13
+ - [2b90cef](https://github.com/appium/flaky/commit/2b90cef5f3ec933c93c8bb675bd7987238d1fccc) Try not to return nil
14
+
15
+
1
16
  #### v0.0.17 2013-12-10
2
17
 
3
18
  - [64078c1](https://github.com/appium/flaky/commit/64078c1ed2ee8a96a52f05aefb460216b48ea2b5) Release 0.0.17
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com