flaky 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flaky.rb +2 -2
- data/lib/flaky/run/all_tests.rb +1 -0
- data/lib/flaky/run/one_test.rb +1 -1
- data/release_notes.md +8 -0
- data/todo.md +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e85d81f9e7ad261be0cff5ab059fa1b5c2492d6
|
4
|
+
data.tar.gz: 287c4adf9b939e1a767583c9ae5aaf003a4aa9f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e544470b5663a3f3ac816d0fc945b512c2ae443353e598ed9581b48be0bd7b4652605e365948b69df850a94c4ce8d506548ce3d202befb31268468e202b5866
|
7
|
+
data.tar.gz: 7d695c71580ab151b30da17274498b3dd143724d3a58cb895626bed521e1d11229f24f5b31b27ed75c5b14a8e6e82bb5c6fff0a64935e3aba38e659f438a84ef
|
data/lib/flaky.rb
CHANGED
@@ -9,8 +9,8 @@ require 'posix/spawn' # http://rubygems.org/gems/posix-spawn
|
|
9
9
|
require 'digest/md5'
|
10
10
|
|
11
11
|
module Flaky
|
12
|
-
VERSION = '0.0.
|
13
|
-
DATE = '2013-12-
|
12
|
+
VERSION = '0.0.16' unless defined? ::Flaky::VERSION
|
13
|
+
DATE = '2013-12-09' unless defined? ::Flaky::DATE
|
14
14
|
|
15
15
|
# https://github.com/appium/ruby_lib/blob/0e203d76610abd519ba9d2fe9c14b50c94df5bbd/lib/appium_lib.rb#L24
|
16
16
|
def self.add_to_path file, path=false
|
data/lib/flaky/run/all_tests.rb
CHANGED
@@ -25,6 +25,7 @@ module Flaky
|
|
25
25
|
test_name = File.join(File.dirname(test_name), File.basename(test_name, '.*'))
|
26
26
|
|
27
27
|
count.times do
|
28
|
+
File.open('/tmp/flaky/current.txt', 'a') { |f| f.puts "Running: #{test_name} on #{os}" }
|
28
29
|
appium.start
|
29
30
|
run_cmd = "cd #{current_dir}; rake #{os.downcase}['#{name}']"
|
30
31
|
passed = flaky.execute run_cmd: run_cmd, test_name: test_name, appium: appium
|
data/lib/flaky/run/one_test.rb
CHANGED
@@ -26,7 +26,7 @@ module Flaky
|
|
26
26
|
file = test_file
|
27
27
|
end
|
28
28
|
|
29
|
-
raise "#{
|
29
|
+
raise "#{file} does not exist." if file.empty?
|
30
30
|
|
31
31
|
test_name = file.sub(current_dir + '/appium/', '')
|
32
32
|
test_name = File.join(File.dirname(test_name), File.basename(test_name, '.*'))
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v0.0.15 2013-12-05
|
2
|
+
|
3
|
+
- [5397189](https://github.com/appium/flaky/commit/539718980a1c1578da63c30f773e5c249415b2b9) Release 0.0.15
|
4
|
+
- [62aa23a](https://github.com/appium/flaky/commit/62aa23a99d3e18c39bc47c0a3075f803aabc7d1b) Update readme.md
|
5
|
+
- [c6b5e9c](https://github.com/appium/flaky/commit/c6b5e9cda34d76d4edf149eb90c7776a4cf23b2c) Add run from file option
|
6
|
+
- [37ed2c8](https://github.com/appium/flaky/commit/37ed2c89b78449f0c91b5582551f11de94435b83) Update todo.md
|
7
|
+
|
8
|
+
|
1
9
|
#### v0.0.14 2013-11-22
|
2
10
|
|
3
11
|
- [6f21c6f](https://github.com/appium/flaky/commit/6f21c6fb899628a41e5e98e2a837e376222edf5c) Release 0.0.14
|
data/todo.md
CHANGED
@@ -8,3 +8,11 @@
|
|
8
8
|
```ruby
|
9
9
|
lines.split("\n").each { |l| puts File.basename(l.split(',').first) }; nil
|
10
10
|
```
|
11
|
+
|
12
|
+
- Aggregate common errors
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
Dir.glob('/tmp/flaky/fail/**/*') { |f| puts f if File.file?(f) && File.readlines(f).to_s.include?('Object.afterWrite') }
|
16
|
+
|
17
|
+
Dir.glob('/tmp/flaky/fail/**/*') { |f| puts f if File.file?(f) && File.readlines(f).to_s.include?('target application appears to have died') }
|
18
|
+
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flaky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic_duration
|