hiptest-publisher 1.18.1 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8cc5aa51ad57afa0623bb82faf03723b49425922d354a234828913ed30f72de
|
4
|
+
data.tar.gz: 545adff5264a394375d71456a05222c1f418b0b6a28bc39a5bcfc7394b9c097c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2766f34e8aaf9b6a9ddde9013dfad7d1ef3c694221fb3e75c76917f12d84fac42728fa1ec36859287065592b8d495bbb89b6f85802da91fa0cab412d95dd4e7d
|
7
|
+
data.tar.gz: b8c5d1458b13161492ff655604d1633a738353fed6bf54f579fff98ddfdc1e9dcf571d0b820aac30dab1f42dcf90e368ff787bb7d86f98b4f5d5b562dede903c
|
@@ -222,6 +222,14 @@ module Hiptest
|
|
222
222
|
end.join("\n")
|
223
223
|
end
|
224
224
|
|
225
|
+
def hh_description_with_annotations (context, commenter, block)
|
226
|
+
value = compute_block_value(context, commenter, block)
|
227
|
+
value = value.split("\n").map do |line|
|
228
|
+
line.start_with?('Given', 'When', 'Then', 'And', 'But') ? "\"#{line}\"" : line
|
229
|
+
end.join("\n")
|
230
|
+
value
|
231
|
+
end
|
232
|
+
|
225
233
|
def hh_curly (context, block)
|
226
234
|
"{#{block.fn(context)}}"
|
227
235
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{{#if has_datasets?}}
|
2
2
|
{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
3
3
|
{{/if}}{{> scenario_outline_title}}{{#indent}}
|
4
|
-
{{#if has_description?}}{{
|
4
|
+
{{#if has_description?}}{{description_with_annotations rendered_children.description}}
|
5
5
|
{{/if}}{{#each rendered_children.body}}{{{ this }}}
|
6
6
|
{{/each}}
|
7
7
|
Examples:{{#indent}}
|
@@ -11,7 +11,7 @@ Examples:{{#indent}}
|
|
11
11
|
{{else}}
|
12
12
|
{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
13
13
|
{{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
|
14
|
-
{{#if has_description?}}{{
|
14
|
+
{{#if has_description?}}{{description_with_annotations rendered_children.description}}
|
15
15
|
{{/if}}{{#each rendered_children.body}}{{{ this }}}
|
16
16
|
{{/each}}
|
17
17
|
{{/indent}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{{#if rendered_children.ancestor_tags}}{{#if context.parent_folder_tags}}{{#each rendered_children.ancestor_tags}}{{this}} {{/each}}{{#unless has_tags?}}
|
2
2
|
{{/unless}}{{/if}}{{/if}}{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
3
3
|
{{/if}}Feature: {{{ rendered_children.name }}}{{#indent}}
|
4
|
-
{{#if rendered_children.description}}{{#indent}}{{
|
4
|
+
{{#if rendered_children.description}}{{#indent}}{{description_with_annotations rendered_children.description}}{{/indent}}{{/if}}
|
5
5
|
{{#unless is_empty?}}
|
6
6
|
Background:{{#indent}}
|
7
7
|
{{#each rendered_children.body}}{{{ this }}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}
|
2
2
|
{{#if has_tags?}}Meta:
|
3
3
|
{{join rendered_children.tags ' '}}
|
4
|
-
{{/if}}{{#if has_description?}}{{
|
4
|
+
{{/if}}{{#if has_description?}}{{description_with_annotations rendered_children.description}}
|
5
5
|
{{/if}}{{#each rendered_children.body}}{{{ this }}}
|
6
6
|
{{/each}}{{#if has_datasets?}}
|
7
7
|
Examples:
|
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: 1.
|
4
|
+
version: 1.19.0
|
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: 2019-01-
|
11
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -664,7 +664,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
664
664
|
version: '0'
|
665
665
|
requirements: []
|
666
666
|
rubyforge_project:
|
667
|
-
rubygems_version: 2.7.
|
667
|
+
rubygems_version: 2.7.7
|
668
668
|
signing_key:
|
669
669
|
specification_version: 4
|
670
670
|
summary: Export your tests from Hiptest into executable tests.
|