hiptest-publisher 0.16.2 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/hiptest-publisher/options_parser.rb +11 -20
- data/lib/templates/gherkin/dataset.hbs +1 -1
- data/lib/templates/gherkin/single_scenario.hbs +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f75d6b3c97c3dbfeb9add8c72aeadd3016cad261
|
4
|
+
data.tar.gz: c389e391b7050912ea252a059e2d4d07805553e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe993b15852c354dee4b1dd3a41def8a3f661de0a64b32087ed88e3a0db85fe92885f7713c46709c22a9ba00598ea567ff7c136f9d93ce346fd012566e5744c9
|
7
|
+
data.tar.gz: dc7b25e143cb22ce0bb3ac98c7f5f6d5c6f656afd3d7f67bd3957f895d8eaf82068ce50dc8dfbd922a91a37f2697ab399dbdb4c20847f304e0ecb349e3d17ba5
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ docker cp $cid:/usr/src/app/bin/hiptest-publisher-docker hiptest-publisher &&
|
|
25
25
|
docker rm $cid > /dev/null
|
26
26
|
```
|
27
27
|
|
28
|
-
Now you can use `hiptest-publisher` in order to run the program.
|
28
|
+
Now you can use `hiptest-publisher` in order to run the program.
|
29
29
|
|
30
30
|
Suggestions for installation of the hiptest-publisher script:
|
31
31
|
|
@@ -40,7 +40,7 @@ You need to have [Ruby installed on your machine](https://www.ruby-lang.org/en/i
|
|
40
40
|
gem install hiptest-publisher
|
41
41
|
```
|
42
42
|
|
43
|
-
Note: for Windows
|
43
|
+
Note: for Windows users, take a look at [this Windows installation guide](docs/INSTALLING/Windows.md).
|
44
44
|
|
45
45
|
Exporting a project
|
46
46
|
-------------------
|
@@ -121,7 +121,6 @@ Specific options:
|
|
121
121
|
--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)
|
122
122
|
-v, --verbose Run verbosely (default: false)
|
123
123
|
-H, --languages-help Show languages and framework options
|
124
|
-
-F, --filters-help Show help about scenario filtering
|
125
124
|
-h, --help Show this message
|
126
125
|
```
|
127
126
|
|
@@ -12,10 +12,16 @@ class FileConfigParser
|
|
12
12
|
config = ParseConfig.new(options.config)
|
13
13
|
config.get_params.each do |param|
|
14
14
|
next if options.__cli_args && options.__cli_args.include?(param.to_sym)
|
15
|
-
if
|
15
|
+
if param.start_with?("no_")
|
16
|
+
value = falsy?(config[param]) ? "true" : "false"
|
17
|
+
param = param.sub("no_", "")
|
18
|
+
else
|
19
|
+
value = config[param]
|
20
|
+
end
|
21
|
+
if falsy?(value)
|
16
22
|
options[param] = false
|
17
23
|
else
|
18
|
-
options[param] =
|
24
|
+
options[param] = value
|
19
25
|
end
|
20
26
|
options.__config_args << param.to_sym if options.__config_args
|
21
27
|
end
|
@@ -101,6 +107,7 @@ class CliOptions < OpenStruct
|
|
101
107
|
end
|
102
108
|
|
103
109
|
def normalize!(reporter = nil)
|
110
|
+
self.no_uids = !uids # silent normalization
|
104
111
|
modified_options = self.clone
|
105
112
|
if actionwords_only
|
106
113
|
modified_options.only = 'actionwords'
|
@@ -188,7 +195,7 @@ class OptionsParser
|
|
188
195
|
Option.new('p', 'push=FILE.TAP', '', String, "Push a results file to the server", :push),
|
189
196
|
Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (junit, nunit, tap, robot)", :push_format),
|
190
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),
|
191
|
-
Option.new(nil, 'no-uids',
|
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),
|
192
199
|
Option.new('v', 'verbose', false, nil, "Run verbosely", :verbose)
|
193
200
|
]
|
194
201
|
end
|
@@ -210,22 +217,6 @@ class OptionsParser
|
|
210
217
|
exit
|
211
218
|
end
|
212
219
|
|
213
|
-
opts.on("-F", "--filters-help", "Show help about scenario filtering") do
|
214
|
-
[
|
215
|
-
"hiptest-publisher allows you to filter the exported scenarios.",
|
216
|
-
"You can select the ids of the scenarios:",
|
217
|
-
"hiptest-publisher --scenario-ids=12",
|
218
|
-
"hiptest-publisher --scenario-ids=12,15,16",
|
219
|
-
"",
|
220
|
-
"You can also filter by tags:",
|
221
|
-
"hiptest-publisher --scenario-tags=mytag",
|
222
|
-
"hiptest-publisher --scenario-tags=mytag,myother:tag",
|
223
|
-
"",
|
224
|
-
"You can not mix ids and tag filtering, only the id filtering will be applied."
|
225
|
-
].each {|line| puts line}
|
226
|
-
exit
|
227
|
-
end
|
228
|
-
|
229
220
|
opts.on_tail("-h", "--help", "Show this message") do
|
230
221
|
puts opts
|
231
222
|
exit
|
@@ -496,7 +487,7 @@ class LanguageGroupConfig
|
|
496
487
|
call_prefix: @language_group_params[:call_prefix],
|
497
488
|
package: @language_group_params[:package],
|
498
489
|
namespace: @language_group_params[:namespace],
|
499
|
-
|
490
|
+
uids: @user_params[:uids]
|
500
491
|
)
|
501
492
|
end
|
502
493
|
|
@@ -1 +1 @@
|
|
1
|
-
| {{{ join rendered_children.arguments ' | ' }}} |{{#
|
1
|
+
| {{{ join rendered_children.arguments ' | ' }}} |{{#if context.uids}} {{#if rendered_children.uid}}uid:{{{rendered_children.uid}}}{{/if}} |{{/if}}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
{{#if has_datasets?}}
|
2
2
|
{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
3
|
-
{{/if}}Scenario Outline: {{{ rendered_children.name }}}{{#
|
3
|
+
{{/if}}Scenario Outline: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
|
4
4
|
{{#each rendered_children.body}}{{{ this }}}
|
5
5
|
{{/each}}
|
6
6
|
Examples:{{#indent}}
|
7
|
-
| {{ join rendered_children.parameters ' | ' }} |{{#
|
7
|
+
| {{ join rendered_children.parameters ' | ' }} |{{#if context.uids}} hiptest-uid |{{/if}}
|
8
8
|
{{{rendered_children.datatable}}}
|
9
9
|
{{/indent}}{{/indent}}
|
10
10
|
{{else}}
|
11
11
|
{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
12
|
-
{{/if}}Scenario: {{{ rendered_children.name }}}{{#
|
12
|
+
{{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
|
13
13
|
{{#each rendered_children.body}}{{{ this }}}
|
14
14
|
{{/each}}
|
15
15
|
{{/indent}}
|
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.
|
4
|
+
version: 0.17.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: 2016-
|
11
|
+
date: 2016-10-20 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.6.
|
609
|
+
rubygems_version: 2.6.7
|
610
610
|
signing_key:
|
611
611
|
specification_version: 4
|
612
612
|
summary: Export your tests from Hiptest into executable tests.
|