hiptest-publisher 0.18.1 → 0.18.2

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
  SHA1:
3
- metadata.gz: 8ca209f99be0ca59dd8ef5faeb35357b53fd25f1
4
- data.tar.gz: 2c6428f83f7a9aeca6b05cfa617c09ae521b33be
3
+ metadata.gz: 714ffc798e863a6f32beb496fc7dc10fe04b0790
4
+ data.tar.gz: cb6239cecf2145bc9ea74a1349e5674c87a2a558
5
5
  SHA512:
6
- metadata.gz: e1432d0bad171c16267211b1d1f1c1077a2bfe85092011a920a8afc2586a4ed751164dba8631f60391a4c746f2fafe0dfecf196cb796c187190df369e6920f28
7
- data.tar.gz: 57e857fd56aa6e6fb91deb72f1fcbdbcf91dec759cdd2ac9e666b7c2dc855601796a6544593bae03be088b5b156e57f425a9c23cf7fe17cad398d9c1ada3d734
6
+ metadata.gz: 879173a5ddb5b9d501a11b08c9b95905a5fdd7302fd4f5dc32e02301ae3beecd589946ab3fafc3aed4834e3da993f1638e743bbc43b82bae1e4d45ffe4fa14d1
7
+ data.tar.gz: 7de6e66d666d8023e0dea0afbf57e046e8d03526505cdcef98edaa5f8b552270548740177507e08bf1a8275b29867348c77800b89ee94ae58e264f67c37a5165
data/README.md CHANGED
@@ -98,9 +98,11 @@ Specific options:
98
98
  -l, --language=LANG Target language (default: ruby)
99
99
  -f, --framework=FRAMEWORK Test framework to use
100
100
  -o, --output-directory=PATH Output directory (default: .)
101
+ --filename-pattern=PATTERN Filename pattern (containing %s)
101
102
  -c, --config-file=PATH Configuration file
102
103
  --overriden-templates=PATH Folder for overriden templates
103
- --test-run-id=ID Export data from a test run
104
+ --test-run-id=ID Export data from a test run identified by its id
105
+ --test-run-name=NAME Export data from a test run identified by its name
104
106
  --only=CATEGORIES Restrict export to given file categories (--only=list to list them)
105
107
  -x, --xml-file=PROJECT_XML XML file to use instead of fetching it from Hiptest
106
108
  --tests-only (deprecated) alias for --only=tests (default: false)
@@ -112,13 +114,18 @@ Specific options:
112
114
  --show-actionwords-renamed Output signatures of renamed action words (default: false)
113
115
  --show-actionwords-signature-changed
114
116
  Output signatures of action words for which signature changed (default: false)
117
+ --show-actionwords-definition-changed
118
+ Output action words for which definition changed (default: false)
115
119
  --with-folders Use folders hierarchy to export files in respective directories (default: false)
116
120
  --split-scenarios Export each scenario in a single file (default: false)
117
121
  --leafless-export Use only last level action word (default: false)
118
122
  -s, --site=SITE Site to fetch from (default: https://hiptest.net)
119
123
  -p, --push=FILE.TAP Push a results file to the server
120
- --push-format=tap Format of the test results (tap, junit, nunit, robot) (default: tap)
124
+ --push-format=tap Format of the test results (junit, nunit, tap, robot) (default: tap)
121
125
  --sort=[id,order,alpha] Sorting of tests in output: id will sort them by age, order will keep the same order than in hiptest (only with --with-folders option, will fallback to id otherwise), alpha will sort them by name (default: order)
126
+ --[no-]uids Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
127
+ --keep-filenames Keep the same name as in Hiptest for the test files (note: may cause encoding issues) (default: false)
128
+ --keep-foldernames Keep the same name as in Hiptest for the folders (note: may cause encoding issues) (default: false)
122
129
  -v, --verbose Run verbosely (default: false)
123
130
  -H, --languages-help Show languages and framework options
124
131
  -h, --help Show this message
@@ -196,6 +196,9 @@ class OptionsParser
196
196
  Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (junit, nunit, tap, robot)", :push_format),
197
197
  Option.new(nil, 'sort=[id,order,alpha]', 'order', String, "Sorting of tests in output: id will sort them by age, order will keep the same order than in hiptest (only with --with-folders option, will fallback to id otherwise), alpha will sort them by name", :sort),
198
198
  Option.new(nil, '[no-]uids', true, nil, 'Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back)', :uids),
199
+ Option.new(nil, 'keep-filenames', false, nil, "Keep the same name as in Hiptest for the test files (note: may cause encoding issues)", :keep_filenames),
200
+ Option.new(nil, 'keep-filenames', false, nil, "Keep the same name as in Hiptest for the test files (note: may cause encoding issues)", :keep_filenames),
201
+ Option.new(nil, 'keep-foldernames', false, nil, "Keep the same name as in Hiptest for the folders (note: may cause encoding issues)", :keep_foldernames),
199
202
  Option.new('v', 'verbose', false, nil, "Run verbosely", :verbose)
200
203
  ]
201
204
  end
@@ -541,11 +544,15 @@ class LanguageGroupConfig
541
544
  end
542
545
 
543
546
  def normalized_dirname(name)
547
+ return name if @user_params.keep_foldernames
548
+
544
549
  dirname_convention = @language_group_params[:dirname_convention] || @language_group_params[:filename_convention] || :normalize
545
550
  name.send(dirname_convention)
546
551
  end
547
552
 
548
553
  def normalized_filename(name)
554
+ return name if @user_params.keep_filenames
555
+
549
556
  filename_convention = @language_group_params[:filename_convention] || :normalize
550
557
  name.send(filename_convention)
551
558
  end
@@ -1,2 +1,2 @@
1
1
  {{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
2
- {{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_upper rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
2
+ {{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_upper rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
@@ -10,7 +10,8 @@ Examples:{{#indent}}
10
10
  {{else}}
11
11
  {{#if has_tags?}}{{join rendered_children.tags ' '}}
12
12
  {{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
13
- {{#each rendered_children.body}}{{{ this }}}
13
+ {{#if has_description?}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}
14
+ {{/if}}{{#each rendered_children.body}}{{{ this }}}
14
15
  {{/each}}
15
16
  {{/indent}}
16
17
  {{/if}}
@@ -1,2 +1,2 @@
1
1
  {{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
2
- {{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
2
+ {{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
@@ -1,2 +1,2 @@
1
1
  {{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
2
- {{/if}}this.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
2
+ {{/if}}this.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
@@ -1,2 +1,2 @@
1
1
  {{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
2
- {{/if}}{{#if context.call_prefix}}{{{ context.call_prefix }}}->{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
2
+ {{/if}}{{#if context.call_prefix}}{{{ context.call_prefix }}}->{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
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.18.1
4
+ version: 0.18.2
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: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -606,7 +606,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
606
606
  version: '0'
607
607
  requirements: []
608
608
  rubyforge_project:
609
- rubygems_version: 2.4.8
609
+ rubygems_version: 2.5.1
610
610
  signing_key:
611
611
  specification_version: 4
612
612
  summary: Export your tests from Hiptest into executable tests.