hiptest-publisher 0.3.2 → 0.3.3
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 +4 -3
- data/lib/hiptest-publisher/utils.rb +2 -2
- data/lib/templates/java/_item_as_function.hbs +2 -2
- data/lib/templates/java/dataset.hbs +2 -2
- data/lib/templates/java/scenarios.hbs +2 -2
- data/lib/templates/java/testng/dataset.hbs +2 -2
- data/lib/templates/java/testng/scenarios.hbs +4 -4
- data/lib/templates/java/testng/tests.hbs +4 -4
- data/lib/templates/java/tests.hbs +2 -2
- metadata +37 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a921dd15737f9e07231f4c35cc5043fa19a0d6
|
4
|
+
data.tar.gz: 6555d4631f2d76cea70eac370c78ce87040ebca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 688c6e8b5268a56aa13c03901416a4b5a925401dd075601316c37218434cd029cef0d6426f2a1281e9364d802ff995d317cbe6dd40e8be862ebd4fcf033a5ce2
|
7
|
+
data.tar.gz: 96d8065d29f2473aa49082cbdaa22637a65e22fb300c73a89cb5fcb90ecf525671f178ea1b17c645cde981289232cc3be9747d0ea1f7f888c52b45caebfd3aff
|
@@ -1,4 +1,5 @@
|
|
1
|
-
require 'handlebars'
|
1
|
+
require 'ruby-handlebars'
|
2
|
+
|
2
3
|
require 'hiptest-publisher/nodes_walker'
|
3
4
|
require 'hiptest-publisher/handlebars_helper'
|
4
5
|
require 'hiptest-publisher/render_context_maker'
|
@@ -20,7 +21,7 @@ module Hiptest
|
|
20
21
|
super(:children_first)
|
21
22
|
@rendered = {}
|
22
23
|
@context = context
|
23
|
-
@handlebars = Handlebars::
|
24
|
+
@handlebars = Handlebars::Handlebars.new
|
24
25
|
register_partials()
|
25
26
|
|
26
27
|
Hiptest::HandlebarsHelper.register_helpers(@handlebars, @context)
|
@@ -70,7 +71,7 @@ module Hiptest
|
|
70
71
|
render_context[:context] = @context
|
71
72
|
|
72
73
|
template = get_template_path(node)
|
73
|
-
@handlebars.compile(File.read(template)).
|
74
|
+
@handlebars.compile(File.read(template)).call(render_context)
|
74
75
|
end
|
75
76
|
|
76
77
|
def get_template_by_name(name, extension)
|
@@ -57,7 +57,7 @@ def make_push_url(options)
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def push_results(options)
|
60
|
-
# Code from: https://github.com/nicksieger/multipart-
|
60
|
+
# Code from: https://github.com/nicksieger/multipart-post
|
61
61
|
url = URI.parse(make_push_url(options))
|
62
62
|
use_ssl = make_push_url(options).start_with?('https://')
|
63
63
|
|
@@ -68,4 +68,4 @@ def push_results(options)
|
|
68
68
|
http.request(req)
|
69
69
|
end
|
70
70
|
end
|
71
|
-
end
|
71
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
public void {{{ camelize_lower rendered_children.name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {
|
1
|
+
public void {{{ camelize_lower rendered_children.name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {{#curly}}
|
2
2
|
{{#clear_empty_lines}}
|
3
3
|
{{#indent}}{{#if has_tags?}}// Tags: {{{ join rendered_children.tags ' '}}}{{/if}}{{/indent}}
|
4
4
|
{{> body}}
|
5
5
|
{{/clear_empty_lines}}
|
6
|
-
}
|
6
|
+
{{/curly}}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
public void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {
|
1
|
+
public void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}
|
2
2
|
{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});
|
3
|
-
}
|
3
|
+
{{/curly}}
|
@@ -2,10 +2,10 @@ package {{{ context.package }}};
|
|
2
2
|
|
3
3
|
import junit.framework.TestCase;
|
4
4
|
|
5
|
-
public class {{{ clear_extension context.filename }}} extends TestCase {
|
5
|
+
public class {{{ clear_extension context.filename }}} extends TestCase {{#curly}}
|
6
6
|
|
7
7
|
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
8
|
{{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
|
9
9
|
{{/each}}
|
10
10
|
{{/indent}}
|
11
|
-
}
|
11
|
+
{{/curly}}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
@Test
|
2
|
-
public void {{{ camelize_lower scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {
|
2
|
+
public void {{{ camelize_lower scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}
|
3
3
|
{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});
|
4
|
-
}
|
4
|
+
{{/curly}}
|
@@ -2,15 +2,15 @@ package {{{ context.package }}};
|
|
2
2
|
|
3
3
|
import org.testng.annotations.*;
|
4
4
|
|
5
|
-
public class {{{ clear_extension context.filename }}} {
|
5
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
6
6
|
|
7
7
|
{{#indent}}public Actionwords {{{ context.call_prefix }}};
|
8
8
|
|
9
9
|
@BeforeMethod
|
10
|
-
public void setUp() {
|
10
|
+
public void setUp() {{#curly}}
|
11
11
|
{{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
|
12
|
-
}{{/indent}}
|
12
|
+
{{/curly}}{{/indent}}
|
13
13
|
{{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
|
14
14
|
{{/each}}
|
15
15
|
{{/indent}}
|
16
|
-
}
|
16
|
+
{{/curly}}
|
@@ -2,15 +2,15 @@ package {{{ context.package }}};
|
|
2
2
|
|
3
3
|
import org.testng.annotations.*;
|
4
4
|
|
5
|
-
public class {{{ clear_extension context.filename }}} {
|
5
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
6
6
|
|
7
7
|
{{#indent}}public Actionwords {{{ context.call_prefix }}};
|
8
8
|
|
9
9
|
@BeforeMethod
|
10
|
-
public void setUp() {
|
10
|
+
public void setUp() {{#curly}}
|
11
11
|
{{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
|
12
|
-
}{{/indent}}
|
12
|
+
{{/curly}}{{/indent}}
|
13
13
|
{{#indent}}{{#each rendered_children.tests}}{{{this}}}
|
14
14
|
{{/each}}
|
15
15
|
{{/indent}}
|
16
|
-
}
|
16
|
+
{{/curly}}
|
@@ -2,10 +2,10 @@ package {{{ context.package }}};
|
|
2
2
|
|
3
3
|
import junit.framework.TestCase;
|
4
4
|
|
5
|
-
public class {{{ clear_extension context.filename }}} extends TestCase {
|
5
|
+
public class {{{ clear_extension context.filename }}} extends TestCase {{#curly}}
|
6
6
|
|
7
7
|
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
8
|
{{#indent}}{{#each rendered_children.tests}}{{{this}}}
|
9
9
|
{{/each}}
|
10
10
|
{{/indent}}
|
11
|
-
}
|
11
|
+
{{/curly}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiptest-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiptest R&D
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -91,45 +91,67 @@ dependencies:
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '1.6'
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
|
-
name:
|
94
|
+
name: multipart-post
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 2.0.0
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0
|
102
|
+
version: '2.0'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
109
|
+
version: 2.0.0
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '0
|
112
|
+
version: '2.0'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
114
|
+
name: ruby-handlebars
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '2.0'
|
119
|
+
version: 0.0.1
|
123
120
|
type: :runtime
|
124
121
|
prerelease: false
|
125
122
|
version_requirements: !ruby/object:Gem::Requirement
|
126
123
|
requirements:
|
127
124
|
- - ">="
|
128
125
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
130
|
-
|
126
|
+
version: 0.0.1
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: pry
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
131
132
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: pry-stack_explorer
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
133
155
|
- !ruby/object:Gem::Dependency
|
134
156
|
name: rspec
|
135
157
|
requirement: !ruby/object:Gem::Requirement
|