taf 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/report/report.rb +3 -2
- data/lib/utils/screenshot.rb +2 -2
- data/lib/utils/test_steps.rb +2 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7ee33e27841a60600a1f1287ef9637edd4d21f32229a2cc034e7101e7f2812f
|
4
|
+
data.tar.gz: aa791f1fc23256d0cb2bd779d01a9102177944228d8d26b3065c501bf367d2b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec853637cdbbabb3a6c99995a490627e2906b416f59a562316084b05f39ef40c14d257cc27f3eb8fca80fb71df8fbb1912eabde79c0e52e2443069d73ffbc59e
|
7
|
+
data.tar.gz: c3d07ab4d5d89a1da63a51548b107a1593d74b928082d7de81875443b555b813d618d681532617a326eb6f633e8f46ae5f74bf65fee3ae2ef6cce57377120576
|
data/lib/report/report.rb
CHANGED
@@ -90,7 +90,8 @@ module Report
|
|
90
90
|
# check if the test failure threshold has been reached for total failures
|
91
91
|
# or consecutive failures.
|
92
92
|
# If a certain number of consecutive tests fail then throw an exception
|
93
|
-
def self.check_failure_threshold(test_file_name, _test_step_index
|
93
|
+
def self.check_failure_threshold(test_file_name, _test_step_index,
|
94
|
+
_step_attributes)
|
94
95
|
consecutive_fail_threshold = 5
|
95
96
|
if $previousTestFail && $currentTestFail
|
96
97
|
@consecutive_test_fail += 1
|
@@ -104,7 +105,7 @@ module Report
|
|
104
105
|
MyLog.log.warn "Terminating the current test case: #{test_file_name} as" \
|
105
106
|
" the test failure threshold (#{consecutive_fail_threshold}) has been " \
|
106
107
|
' reached.'
|
107
|
-
MyLog.log.warn '...continuing with the next test
|
108
|
+
MyLog.log.warn '...continuing with the next test spec (if there is one)'
|
108
109
|
|
109
110
|
raise FailureThresholdExceeded,
|
110
111
|
"#{consecutive_fail_threshold} Test Steps Failed."
|
data/lib/utils/screenshot.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# Created on
|
1
|
+
# Created on 07 May 2019
|
2
2
|
# @author: Andy Perrett
|
3
3
|
#
|
4
4
|
# Versions:
|
5
5
|
# 1.0 - Baseline
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# screenshot.rb - a screenshot save function
|
8
8
|
module Screenshot
|
9
9
|
require_relative '../taf_config.rb'
|
10
10
|
|
data/lib/utils/test_steps.rb
CHANGED
@@ -28,7 +28,8 @@ module TestSteps
|
|
28
28
|
func = handler.perform(step_attributes) if runtest == false
|
29
29
|
Report.test_pass_fail(func, test_file_name, test_step_index,
|
30
30
|
step_attributes)
|
31
|
-
Report.check_failure_threshold(test_file_name, test_step_index
|
31
|
+
Report.check_failure_threshold(test_file_name, test_step_index,
|
32
|
+
step_attributes)
|
32
33
|
return true
|
33
34
|
else
|
34
35
|
MyLog.log.warn "\nUnable to match function: #{step_function}"
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Perrett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|