moto 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/parser.rb +7 -1
- data/lib/version.rb +1 -1
- 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: 0ae1662e9b2047bdddd9f5ef509f4f62829dd86b
|
|
4
|
+
data.tar.gz: f2193480dacaee2b14582ca1b13c28c674855a41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94579efb2ecdb8f7d0fe14c32ca7b7a6d7cdd9011d2222f08f1af1a5a766982d3c4ec064f77ebe78bcfe74f480f50f103bd97b474e98ef88438e1030d46fc0ce
|
|
7
|
+
data.tar.gz: 50e91c5c7cc83d9ecfaa9b87755686f72ca1586e49a29478670a4a64b014faa1f6dec235fa74687250a69d16ca904993845a1a0f883bb2d42af325832e53d364
|
data/lib/parser.rb
CHANGED
|
@@ -51,6 +51,8 @@ module Moto
|
|
|
51
51
|
opts.on('-s', '--suitename SuiteName') { |v| options[:suite_name] = v }
|
|
52
52
|
opts.on('-a', '--assignee Assignee') { |v| options[:assignee] = v }
|
|
53
53
|
opts.on('-c', '--config Config') { |v| options[:config_name] = v }
|
|
54
|
+
opts.on('--threads ThreadCount', Integer) { |v| options[:threads] = v }
|
|
55
|
+
opts.on('--attempts AttemptCount', Integer) { |v| options[:attempts] = v }
|
|
54
56
|
opts.on('--stop-on-error') { options[:stop_on][:error] = true }
|
|
55
57
|
opts.on('--stop-on-fail') { options[:stop_on][:fail] = true }
|
|
56
58
|
opts.on('--stop-on-skip') { options[:stop_on][:skip] = true }
|
|
@@ -60,7 +62,6 @@ module Moto
|
|
|
60
62
|
options[:run_name] = evaluate_name(options[:tests], options[:tags], options[:filters])
|
|
61
63
|
end
|
|
62
64
|
|
|
63
|
-
|
|
64
65
|
if options[:environment]
|
|
65
66
|
Moto::Lib::Config.environment = options[:environment]
|
|
66
67
|
Moto::Lib::Config.load_configuration(options[:config_name] ? options[:config_name] : 'moto')
|
|
@@ -69,6 +70,9 @@ module Moto
|
|
|
69
70
|
Kernel.exit(-1)
|
|
70
71
|
end
|
|
71
72
|
|
|
73
|
+
Moto::Lib::Config.moto[:test_runner][:thread_count] = options[:threads] if options[:threads]
|
|
74
|
+
Moto::Lib::Config.moto[:test_runner][:test_attempt_max] = options[:attempts] if options[:attempts]
|
|
75
|
+
|
|
72
76
|
return options
|
|
73
77
|
end
|
|
74
78
|
|
|
@@ -139,6 +143,8 @@ module Moto
|
|
|
139
143
|
Default: Value of -g or -t depending on which one was specified.
|
|
140
144
|
-a, --assignee ID of a person responsible for current test run.
|
|
141
145
|
Can have a default value set in config/webui section.
|
|
146
|
+
--threads Thread count. Run tests in parallel.
|
|
147
|
+
--attempts Attempt count. Max number of test execution times if failed.
|
|
142
148
|
|
|
143
149
|
--stop-on-error Moto will stop test execution when an error is encountered in test results
|
|
144
150
|
--stop-on-fail Moto will stop test execution when a failure is encountered in test results
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartek Wilczek
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|