hiptest-publisher 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiptest-publisher/renderer.rb +8 -0
- data/lib/templates/robotframework/folder.hbs +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92481eaaef2c39f506eef927d55614e9128bdb64
|
4
|
+
data.tar.gz: c775ba60cfaf9df6ede265cd76c2bec9c45a7311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6588cc807d448c99215f35d57d814e85d5f528c257cfc15f0106ac9070fbdbf2d2fdf9a0fa120ebeabd1a5a5639b1e46e3f20b82a666a56e508d2864728e5e9
|
7
|
+
data.tar.gz: 976e868e9a867fc48406a38ebf7b50b8639cfa1a41b0e110c6209457d038559e04a05a39e1fe83f7e8baddee6025f1e0c5b08ba83be4728471a0bc8afbe029e8
|
@@ -35,6 +35,14 @@ module Hiptest
|
|
35
35
|
name: @rendered[sc.children[:name]],
|
36
36
|
uid: @rendered[sc.children[:uid]],
|
37
37
|
datatable: @rendered[sc.children[:datatable]],
|
38
|
+
datasets: sc.children[:datatable].children[:datasets].map {|dataset|
|
39
|
+
{
|
40
|
+
scenario_name: @rendered[sc.children[:name]],
|
41
|
+
name: @rendered[dataset.children[:name]],
|
42
|
+
uid: @rendered[dataset.children[:uid]],
|
43
|
+
arguments: @rendered[dataset.children[:arguments]]
|
44
|
+
}
|
45
|
+
},
|
38
46
|
parameters: @rendered[sc.children[:parameters]],
|
39
47
|
body: @rendered[sc.children[:body]]
|
40
48
|
}
|
@@ -11,16 +11,18 @@ Test Setup{{tab}}Run Keywords{{tab}}{{join rendered_children.body "\n...
|
|
11
11
|
{{/unless}}
|
12
12
|
*** Test Cases ***{{#if datatables_present?}}
|
13
13
|
{{#each rendered_children.splitted_scenarios}}
|
14
|
-
{{#if this.datatable}}{{normalize_with_spaces this.name}}{{#indent}}
|
15
|
-
[Template]{{tab}}{{normalize_with_spaces this.
|
16
|
-
{{this.
|
14
|
+
{{#if this.datatable}}{{#each this.datasets}}{{normalize_with_spaces this.scenario_name}} {{normalize_with_spaces this.name}}{{#if this.uid}} (uid:{{normalize this.uid}}){{/if}}{{#indent}}
|
15
|
+
[Template]{{tab}}{{normalize_with_spaces this.scenario_name}} keyword
|
16
|
+
{{join this.arguments '\t'}}{{/indent}}
|
17
|
+
|
18
|
+
{{/each}}
|
17
19
|
{{else}}{{normalize_with_spaces this.name}}{{#if this.uid}}(uid:{{normalize this.uid}}){{/if}}{{#indent}}
|
18
20
|
{{join this.body '\n'}}{{/indent}}
|
19
21
|
{{/if}}{{/each}}
|
20
22
|
*** Keywords ***
|
21
23
|
|
22
24
|
{{#each rendered_children.splitted_scenarios}}{{#if this.datatable}}{{normalize_with_spaces this.name}} keyword{{#indent}}
|
23
|
-
[Arguments]{{tab}}
|
25
|
+
[Arguments]{{tab}}{{join this.parameters '\t'}}
|
24
26
|
{{join this.body '\n'}}{{/indent}}
|
25
27
|
|
26
28
|
{{/if}}{{/each}}{{else}}
|