testkit123 0.2.6 → 0.2.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/testkit123.rb +10 -4
- metadata +27 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c71572c20bbe4fe67752af0bf83c7c096e89baa74b177941cfaca9409f2f3fb
|
4
|
+
data.tar.gz: 72bc398488905987600db9b1f10e6fb9200006d76ecf9002a8594912fe2c781b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c264eefc27f45dcd8c25f4553b85dcdb93832fcde33b43914021d362e8b9bbc9d9711ce20201a406595b36e26b9738e3a3f8802d2c4deb448b4612fcf7f7b9d6
|
7
|
+
data.tar.gz: daeee25fdf8781a1fa6502f1c9b532bf4850cab8e3d0d2186aedfaed5bbf0a56a28e87cca294cd6829f23847b644d1ca5099ff31ec50515e8787fd6b02b45a8c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/testkit123.rb
CHANGED
@@ -22,6 +22,7 @@ end
|
|
22
22
|
|
23
23
|
class TestKit123
|
24
24
|
using StringFormat
|
25
|
+
using ColouredText
|
25
26
|
|
26
27
|
def initialize(templates: {testdata: nil, testx: nil}, project: nil,
|
27
28
|
debug: false, localpath: nil, datapath: nil,
|
@@ -132,7 +133,8 @@ end
|
|
132
133
|
|
133
134
|
# use the test number to find the test to copy from the test file
|
134
135
|
|
135
|
-
config = SimpleConfig.new(@project_config).to_h
|
136
|
+
config = SimpleConfig.new(@project_config, debug: false).to_h
|
137
|
+
puts ('config: ' + config.inspect).debug if @debug
|
136
138
|
|
137
139
|
proj = config[:project]
|
138
140
|
puts 'create_standalone: proj: ' + proj.inspect if @debug
|
@@ -152,9 +154,10 @@ end
|
|
152
154
|
|
153
155
|
a = s.split(/(?= test )/)
|
154
156
|
a.shift
|
155
|
-
|
157
|
+
puts 'a: ' + a.inspect if @debug
|
158
|
+
|
156
159
|
tests = a.map do |x|
|
157
|
-
r =
|
160
|
+
r = x.match(/(?<=['"])(?<test>[^"']+)['"]\s+do\s+\|(?<raw_args>[^\|]+)/)
|
158
161
|
|
159
162
|
[r[:test], r[:raw_args].split(/, */)]
|
160
163
|
end
|
@@ -184,7 +187,10 @@ end
|
|
184
187
|
puts 'testnode: ' + testnode.xml.inspect if @debug
|
185
188
|
|
186
189
|
title = testnode.text('summary/type')
|
190
|
+
puts ('title: ' + title.inspect).debug if @debug
|
191
|
+
puts ('tests: ' + tests.inspect).debug if @debug
|
187
192
|
i = tests.index tests.assoc(title)
|
193
|
+
puts 'i: ' + i.inspect if @debug
|
188
194
|
|
189
195
|
testcode = a[i].strip.lines[1..-2].map do |line|
|
190
196
|
line.sub(/^ {6}/,'')
|
@@ -281,7 +287,7 @@ end
|
|
281
287
|
}
|
282
288
|
}
|
283
289
|
|
284
|
-
a = RexleBuilder.new(h).to_a
|
290
|
+
a = RexleBuilder.new(h, debug: false).to_a
|
285
291
|
|
286
292
|
Rexle.new(a).xml pretty: true
|
287
293
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testkit123
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20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QpOIwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
|
27
|
+
c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
|
28
|
+
BgkqhkiG9w0BAQsFAAOCAYEAx2Bm/aDoe0xmXzcHyaZ+BihvkVt6e+wTi3ddzql6
|
29
|
+
KVOgJBWXCNri6TltTJNlQXxUD2IoHqi9f+XReh8xicw6dRep/D3qb74P1D3TOEr9
|
30
|
+
N5PHimc/YNhYLuNxJijbjDLQrlnw6vYM8mFT4p+YsaZRkdF1ABFgqpYz4bRucXrI
|
31
|
+
26tkFgV9dlAAgFYQrmdyC4f20rkOl9oJLEzLkUNOGrd1fXz1IWQOffoFZTPqGn4V
|
32
|
+
6jeOVIjbGjzCM9A9jfMC5V7wjVR2OKz+QKKwfixwDKWc186iFJ470zMQs1AuW1jX
|
33
|
+
LZq56q/Q/Xkx07FnhgPqUbe3630f4z+ULwDGVns+lgrEVmQXPqhUbwsOnJZM0s8m
|
34
|
+
mwmSZbk2b0bMllDLaDYMoUkkwRzBxEkKe6DMuC1q7/9lekcCdm2+1teA4j/l82cM
|
35
|
+
owBtF8qd/v9x+t6h+/j/LPTmgwDrPhKl4HmH77oloyec9426T3EW7OvcMiMXAfQG
|
36
|
+
KKJn9TVnRGoWZTIHtu1e5v36
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: rxfhelper
|
@@ -118,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
123
|
- !ruby/object:Gem::Version
|
119
124
|
version: '0'
|
120
125
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.7.6
|
126
|
+
rubygems_version: 3.0.3
|
123
127
|
signing_key:
|
124
128
|
specification_version: 4
|
125
129
|
summary: Generates a test suite of files (for use with the testdata gem) from a config
|
metadata.gz.sig
CHANGED
Binary file
|