actir 1.2.8 → 1.3.0

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: a336c865b4c3c033939c965e0fcb9648c30bef45
4
- data.tar.gz: 6efc7758c7d616ac83d6b009a8c8b65333c80788
3
+ metadata.gz: f4b84ac2a874d211c4d43a12520ca60fa37706e1
4
+ data.tar.gz: 5be1d3a4723483f03bb8da5ffbeda88b377d5155
5
5
  SHA512:
6
- metadata.gz: 0722b48e11c6ecb42ceea3f347772bc95d3f259ebdf249aca1ca33e6731cc9e2ae7797a9eb70bbe7af60e9d7f31896be6f1a79855bf03411f6148427164746a6
7
- data.tar.gz: b582217d60fac84774fc9e522d5df2d1e85267cb1875ec9fd2f63e6ea13364ea9a74191f398d38eb1df06aa71c9196df43600cd865025ca7c714b755eab1a73d
6
+ metadata.gz: 7e306cd8e07a8f0d95d7823c9a234fd7bc851b8105300e2081293fe18453afe85460863aa2ca7ac2fea85fa80b02f382aef90ae91eb0aec10d94c442dc66dcec
7
+ data.tar.gz: cbc761356fc3f5249c10cb213448a0f44ccf84ab7226bdc97b5557cfe158a9f9732c7eaa4adde2ecda2f6be473da6dd6577fd0b141ea91845d3885b8788b75ec
@@ -317,10 +317,9 @@ module Actir
317
317
  end
318
318
 
319
319
  def final_fail_message
320
- fail_message = "#{@runner.name}s Failed\n"
320
+ fail_message = "#{@runner.name}s Failed\n\n"
321
321
  fail_message = "\e[31m#{fail_message}\e[0m" if use_colors?
322
-
323
- division_str + pre_str + fail_message + division_str
322
+ "\n" + pre_str + fail_message + failed_testcase_str + "\n"
324
323
  end
325
324
 
326
325
  def use_colors?
@@ -348,6 +347,16 @@ module Actir
348
347
  report = HtmlReport.new(file)
349
348
  end
350
349
 
350
+ def failed_testcase_str
351
+ failed_case_array = Actir::ParallelTests::Test::Result.get_failed_testcase
352
+ failed_case_str = " Failed testcase:\n"
353
+ failed_case_array.each_with_index do |failed_case, index|
354
+ index_num = (index + 1).to_s
355
+ failed_case_str += " " + index_num + " : " + failed_case + "\n"
356
+ end
357
+ failed_case_str
358
+ end
359
+
351
360
  end
352
361
  end
353
362
  end
@@ -23,6 +23,22 @@ module Actir
23
23
  end
24
24
  end
25
25
 
26
+ #
27
+ # 获取执行失败的用例
28
+ #
29
+ def get_failed_testcase
30
+ failed_case = []
31
+ $testsuites.each do |testsuite|
32
+ testcases = testsuite[:testcases]
33
+ testcases.each do |testcase|
34
+ if testcase[:success] == false
35
+ failed_case << testcase[:testcase_name]
36
+ end
37
+ end
38
+ end
39
+ failed_case
40
+ end
41
+
26
42
  def record_detail(test_result)
27
43
  failure_detail_hash = get_testfailed_info(test_result)
28
44
  $testsuites.each do |testsuite|
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.2.8"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: watir-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.6.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: selenium-webdriver
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.45'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.45'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: parallel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: facets
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.9'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.7'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.7'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '10.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
111
  description: Distribut automated testing framework for Web or App.
@@ -117,8 +117,8 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - .gitignore
121
- - .travis.yml
120
+ - ".gitignore"
121
+ - ".travis.yml"
122
122
  - CODE_OF_CONDUCT.md
123
123
  - Gemfile
124
124
  - README.md
@@ -160,17 +160,17 @@ require_paths:
160
160
  - lib
161
161
  required_ruby_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - '>='
163
+ - - ">="
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - '>='
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.4.7
173
+ rubygems_version: 2.4.3
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Application Concurrence Test in Ruby.