barthes 0.0.9 → 0.0.10

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.
@@ -20,7 +20,7 @@ module Barthes
20
20
 
21
21
  def walk_json(json, parents=[])
22
22
  case json.first
23
- when 'feature', 'scenario'
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]}"
@@ -1,3 +1,3 @@
1
1
  module Barthes
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barthes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: