barthes 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/barthes/reporter/junit_xml.rb +9 -1
- data/lib/barthes/version.rb +1 -1
- metadata +1 -1
@@ -20,7 +20,7 @@ module Barthes
|
|
20
20
|
|
21
21
|
def walk_json(json, parents=[])
|
22
22
|
case json.first
|
23
|
-
when 'feature'
|
23
|
+
when 'feature'
|
24
24
|
if json.last.class == Array
|
25
25
|
@xml.testsuite(name: json[1], tests: json.last.size) do
|
26
26
|
parents.push json[1]
|
@@ -30,6 +30,14 @@ module Barthes
|
|
30
30
|
parents.pop
|
31
31
|
end
|
32
32
|
end
|
33
|
+
when 'scenario'
|
34
|
+
if json.last.class == Array
|
35
|
+
parents.push json[1]
|
36
|
+
json.last.each do |child|
|
37
|
+
walk_json(child, parents)
|
38
|
+
end
|
39
|
+
parents.pop
|
40
|
+
end
|
33
41
|
when 'action'
|
34
42
|
# TODO: zero padding with calculation
|
35
43
|
name = "##{sprintf('%03d', json.last['number'])} #{parents.join(' > ')} #{json[1]}"
|
data/lib/barthes/version.rb
CHANGED