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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/parser.rb +7 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd224b216e3280449fad4b81ac1414cd3e57c7ab
4
- data.tar.gz: b47888b034e16c7f76941c37fadf3e0ece5710ff
3
+ metadata.gz: 0ae1662e9b2047bdddd9f5ef509f4f62829dd86b
4
+ data.tar.gz: f2193480dacaee2b14582ca1b13c28c674855a41
5
5
  SHA512:
6
- metadata.gz: b822b00eb2c1ed26c67937f5ae281a7d2037dd6d3d9f57f217c1b482c65b828256844890b8592690523c36ffa47b05d7993a396575556e40de0ad282174b0d6e
7
- data.tar.gz: fa12104c2e37a2332b47ca48a5cae3fd5854bea84003d4fa3b4fd6215ad11f6c67a6286dd1bb3fd615da1ffbd5dc4898baa2e6431c4cd8474c0451430819c859
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
@@ -1,3 +1,3 @@
1
1
  module Moto
2
- VERSION = '0.9.6'
2
+ VERSION = '0.9.7'
3
3
  end
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.6
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: 2016-11-25 00:00:00.000000000 Z
14
+ date: 2017-02-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport