actir 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actir/parallel_tests/cli.rb +9 -2
- data/lib/actir/parallel_tests/test/re_run.rb +1 -1
- data/lib/actir/parallel_tests/test/runner.rb +12 -4
- data/lib/actir/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fe573a920382f2ad7315697bcb620fc97e2c06b
|
4
|
+
data.tar.gz: 09ec1a2c24d202158c6adf7a60deacda8bac7c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b663a8f7b7af8edb7055769c437b5922d130e0c453d25ac1d3660692a3ee8952e15f47c35ed02fe5dc4eb8ded2f7043e549859ad1dc9a8cf8292abaf17cdd20d
|
7
|
+
data.tar.gz: 9fa74d0d701b9aaa3695e4e24456b4a5bcbf13eaf5a6a455a6149650d3970376411ebea0e203b07e09ce2a1f2a9048d74db8a00a5071cb16c1a867b076bd608b
|
@@ -60,7 +60,13 @@ module Actir
|
|
60
60
|
|
61
61
|
#更新百度支付-百付宝的cookies
|
62
62
|
if options[:update]
|
63
|
-
|
63
|
+
begin
|
64
|
+
Actir::CookiesBaidu.update_all
|
65
|
+
rescue Exception => e
|
66
|
+
#若更新baidu_cookies失败,则打印错误信息,并中断测试执行
|
67
|
+
puts e.message
|
68
|
+
abort "update baidu cookies failed!!!"
|
69
|
+
end
|
64
70
|
end
|
65
71
|
|
66
72
|
#计算重跑次数
|
@@ -170,7 +176,8 @@ module Actir
|
|
170
176
|
Usage: ruby [switches] [--] [files & folders]
|
171
177
|
Options are:
|
172
178
|
BANNER
|
173
|
-
opts.on("-n [PROCESSES]", Integer, "How many processes to use, default: 1") { |n| options[:count] = n }
|
179
|
+
# opts.on("-n [PROCESSES]", Integer, "How many processes to use, default: 1") { |n| options[:count] = n }
|
180
|
+
opts.on("-n [TESTCASE]", String, "Run this testcase") { |casename| options[:testcase] = casename }
|
174
181
|
opts.on("--group-by [TYPE]", <<-TEXT.gsub(/^ /, '')
|
175
182
|
group tests by:
|
176
183
|
found - order of finding files
|
@@ -29,11 +29,19 @@ module Actir
|
|
29
29
|
#require_list = test_files.map { |file| file.sub(" ", "\\ ") }.join(" ")
|
30
30
|
#cmd = "#{executable} -Itest -e '%w[#{require_list}].each { |f| require %{./\#{f}}}' #{address}"
|
31
31
|
#execute_command(cmd, process_number, num_processes, options)
|
32
|
+
|
32
33
|
cmd = ""
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
#如果有-n选项,则只运行指定的测试用例
|
35
|
+
if options[:testcase]
|
36
|
+
raise "more than one file was choosen" if test_files.size != 1
|
37
|
+
cmd = "#{executable} #{test_files[0]} -n #{options[:testcase]} #{address}"
|
38
|
+
else
|
39
|
+
test_files.each do |file|
|
40
|
+
cmd += "#{executable} #{file} #{address};"
|
41
|
+
end
|
42
|
+
cmd += "\n"
|
43
|
+
end
|
44
|
+
|
37
45
|
result = execute_command(cmd, process_number, num_processes, options)
|
38
46
|
#记录log
|
39
47
|
if options[:log]
|
data/lib/actir/version.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-28 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
|
-
-
|
121
|
-
-
|
120
|
+
- .gitignore
|
121
|
+
- .travis.yml
|
122
122
|
- CODE_OF_CONDUCT.md
|
123
123
|
- Gemfile
|
124
124
|
- README.md
|
@@ -159,17 +159,17 @@ require_paths:
|
|
159
159
|
- lib
|
160
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
|
-
- -
|
162
|
+
- - '>='
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
|
-
- -
|
167
|
+
- - '>='
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.4.
|
172
|
+
rubygems_version: 2.4.7
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Application Concurrence Test in Ruby.
|