hiptest-publisher 1.20.0 → 1.21.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 +3 -2
- data/lib/hiptest-publisher.rb +1 -1
- data/lib/hiptest-publisher/client.rb +7 -1
- data/lib/hiptest-publisher/options_parser.rb +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dbc222be552c5f92143031071c6ca766dc99b7590efb9433095257116586a5f
|
4
|
+
data.tar.gz: f71d71e167427d48a22604c5a7a8172b0708efa1a66bf6ace60f541ddcc6ef5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de93cabb75518b1b81574f8d335fd9f52d7be484db57f9552a5592e82ac69b175e60a13eb4d1414009005f77bf627eadbd5d73f61528406202e77f6cdb981821
|
7
|
+
data.tar.gz: f61d5742050bc6107a2d4d3026214cd54242d15164897d860086e5685ae698e1c5b962ac9f46eb078e4c2a5682e7fcfe67b03f72a068555133abdea440e9f0ad
|
data/README.md
CHANGED
@@ -129,9 +129,10 @@ Specific options:
|
|
129
129
|
--global-failure-on-missing-reports
|
130
130
|
When there is no results file to push, report a global failure (default: false)
|
131
131
|
--push-format=tap Format of the test results (cucumber-json, junit, nunit, robot, tap) (default: tap)
|
132
|
-
--
|
132
|
+
--execution-environment=NAME Name of the execution environment
|
133
|
+
--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)
|
133
134
|
--[no-]uids Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
|
134
|
-
--[no-]parent-
|
135
|
+
--[no-]parent-folder-tags Export tags from parent folders (note: if set to false, those tags are never rendered. Only available for Gherkin base exports) (default: true)
|
135
136
|
--parameter-delimiter Parameter delimiter (for Gherkin based export only) (default: ")
|
136
137
|
--with-dataset-names Export dataset name when creating feature files (note: available only for Gherkin-based exports) (default: false)
|
137
138
|
--keep-filenames Keep the same name as in HipTest for the test files (note: may cause encoding issues) (default: false)
|
data/lib/hiptest-publisher.rb
CHANGED
@@ -286,7 +286,7 @@ module Hiptest
|
|
286
286
|
end
|
287
287
|
|
288
288
|
def display_empty_push_help
|
289
|
-
command = @cli_options.command_line_used(exclude: [:push, :push_format])
|
289
|
+
command = @cli_options.command_line_used(exclude: [:push, :push_format, :execution_environment])
|
290
290
|
enhanced_command = "#{command} --without=actionwords"
|
291
291
|
if @cli_options.test_run_id.nil? || @cli_options.test_run_id.empty?
|
292
292
|
enhanced_command += " --test-run-id=<the ID of the test run you want to push the results to>"
|
@@ -20,7 +20,7 @@ module Hiptest
|
|
20
20
|
|
21
21
|
def url
|
22
22
|
if cli_options.push?
|
23
|
-
"#{cli_options.site}/import_test_results/#{cli_options.token}/#{cli_options.push_format}"
|
23
|
+
"#{cli_options.site}/import_test_results/#{cli_options.token}/#{cli_options.push_format}#{execution_environment_query_parameter}"
|
24
24
|
elsif test_run_id
|
25
25
|
"#{base_publication_path}/test_run/#{test_run_id}#{test_run_export_filter}"
|
26
26
|
else
|
@@ -192,5 +192,11 @@ module Hiptest
|
|
192
192
|
"http", nil, address, port, nil, nil, nil, nil, nil
|
193
193
|
).find_proxy
|
194
194
|
end
|
195
|
+
|
196
|
+
def execution_environment_query_parameter
|
197
|
+
return "?execution_environment=#{cli_options.execution_environment}" unless cli_options.execution_environment.strip.empty?
|
198
|
+
|
199
|
+
""
|
200
|
+
end
|
195
201
|
end
|
196
202
|
end
|
@@ -237,6 +237,7 @@ class OptionsParser
|
|
237
237
|
Option.new('p', 'push=FILE.TAP', '', String, "Push a results file to the server", :push),
|
238
238
|
Option.new(nil, 'global-failure-on-missing-reports', false, nil, "When there is no results file to push, report a global failure", :global_failure_on_missing_reports),
|
239
239
|
Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (cucumber-json, junit, nunit, robot, tap)", :push_format),
|
240
|
+
Option.new(nil, 'execution-environment=NAME', '', String, "Name of the execution environment", :execution_environment),
|
240
241
|
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),
|
241
242
|
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),
|
242
243
|
Option.new(nil, '[no-]parent-folder-tags', true, nil, 'Export tags from parent folders (note: if set to false, those tags are never rendered. Only available for Gherkin base exports)', :parent_folder_tags),
|
@@ -317,7 +318,6 @@ class OptionsParser
|
|
317
318
|
end
|
318
319
|
end
|
319
320
|
|
320
|
-
|
321
321
|
class NodeRenderingContext
|
322
322
|
def initialize(properties)
|
323
323
|
# should contain :node, :path, :description, :indentation
|
@@ -360,7 +360,6 @@ class NodeRenderingContext
|
|
360
360
|
end
|
361
361
|
end
|
362
362
|
|
363
|
-
|
364
363
|
class TemplateFinder
|
365
364
|
attr_reader :template_dirs, :overriden_templates, :forced_templates, :fallback_template
|
366
365
|
|
@@ -652,7 +651,6 @@ class LanguageGroupConfig
|
|
652
651
|
end
|
653
652
|
end
|
654
653
|
|
655
|
-
|
656
654
|
class LanguageConfigParser
|
657
655
|
def initialize(cli_options, language_config_path = nil)
|
658
656
|
@cli_options = cli_options
|
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.21.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-02-
|
11
|
+
date: 2019-02-27 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.
|