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: 72feb2ab6699c43b1e7db2704110ceb6a38ac0f5baaa14e0a21127988f7f66b1
4
- data.tar.gz: a1885c484be7b91155c38c6ecc1e62010cc1060b3bc91922a1adcacc0af657eb
3
+ metadata.gz: e8cc5aa51ad57afa0623bb82faf03723b49425922d354a234828913ed30f72de
4
+ data.tar.gz: 545adff5264a394375d71456a05222c1f418b0b6a28bc39a5bcfc7394b9c097c
5
5
  SHA512:
6
- metadata.gz: 68e786fca0b041eb333b3be646d323917b9ffb0065517817143e0589c5feb767437b96706ff26047d706b2b39840f0d5f303c8f784c034dec8104d190394e92b
7
- data.tar.gz: 6498a773930f218a251b3549819d70273c919fe919643e589733978003705503f1327b306a09ea72d064bce0602cfa5672c88e48d8b8da5bd9ace003a92d8ee1
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
@@ -490,7 +490,6 @@ module Hiptest
490
490
 
491
491
  def initialize(uid, parent_uid, name, description, tags = [], order_in_parent = 0, body = [])
492
492
  super()
493
-
494
493
  @uid = uid
495
494
  @parent_uid = parent_uid
496
495
  @order_in_parent = order_in_parent
@@ -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?}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}
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?}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}
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}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}{{/indent}}{{/if}}
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?}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}
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.18.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-07 00:00:00.000000000 Z
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.6
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.