hiptest-publisher 1.16.5 → 1.16.6

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: b59635b1cc251611dfa00dc3db91aa4c5e0f1d3026d88d726e7c67bb6f14aefc
4
- data.tar.gz: 62382d29cffa740fc00f8e176b85e198bd27c207daed3cb76369bfd361d94b83
3
+ metadata.gz: e797ade8973ee6c1d0b4cb663927e7318513b0c35b3e4142463d98cfb9a8b57d
4
+ data.tar.gz: 88bd0e4111c71f7653c168427afe53588f71157df2763a263a7c16e73afb3014
5
5
  SHA512:
6
- metadata.gz: 378876f0876842faf4921709e46e8e80b50f3b48b7b8235ebda6b84d909721db8f436484928d2011dd7b57fc8f8552abe3ba0b05bbf0d96e6c3560418e92c646
7
- data.tar.gz: 5c4ec05928730c2f9794279ac477f2ec9eec4e2cbac8f012024ebe68d26a36cebcf43c52df963bb8cc0d7c665fd980c24537b37e816a161b0feb4c903e747031
6
+ metadata.gz: 4aa0ff4f4cadc78b9286501a852dfd94463d49d205dd52a97f408b94e938f718c1e0b38aaeae68a115c84dbe6379184d720898f206c09b06cb0f30884b19820d
7
+ data.tar.gz: cea4cc97098c072dc1d3f7a527253d4a6b8a97c2987d518388c197655bdf0f43c6470b9e9086264d719d5761e2194e10ef10ab553e1ef16c6454a61ba988f87f
data/README.md CHANGED
@@ -11,27 +11,27 @@ Hiptest Publisher
11
11
  Installing
12
12
  ----------
13
13
 
14
- ### Docker Installation
14
+ ### Using docker image
15
15
 
16
- You can build the docker image or use an already built docker image for hiptest/hiptest-publisher.
16
+ A docker image of hiptest-publisher is built automatically and is available on
17
+ [Docker Hub](https://hub.docker.com/r/hiptest/hiptest-publisher/)
17
18
 
18
- You can use the docker image just like the command line installation. The image includes a script that runs
19
- docker with the necessary options. Copy the script from the image using these commands:
20
-
21
- ```shell
22
- cid=$(docker create hiptest/hiptest-publisher) &&
23
- docker cp $cid:/usr/src/app/bin/hiptest-publisher-docker hiptest-publisher &&
24
- docker rm $cid > /dev/null
19
+ To call hiptest-publisher using this image, run this command:
20
+ ```
21
+ docker run -it --rm -u $UID -v $(pwd):/app hiptest/hiptest-publisher <arguments>
25
22
  ```
26
23
 
27
- Now you can use `hiptest-publisher` in order to run the program.
28
-
29
- Suggestions for installation of the hiptest-publisher script:
24
+ A wrapper script is provided in
25
+ [`bin/hiptest-publisher-docker`](https://raw.githubusercontent.com/hiptest/hiptest-publisher/master/bin/hiptest-publisher-docker).
26
+ To use it:
27
+ 1. copy `bin/hiptest-publisher-docker` to a location available in your `PATH`
28
+ like `~/bin` or `/usr/local/bin`
29
+ 2. rename it as `hiptest-publisher`
30
+ 3. make it executable with `chmod +x hiptest-publisher`
30
31
 
31
- * Copy hiptest-publisher to a path directory (e.g. ~/bin or /usr/local/bin).
32
- * Create an alias for hiptest-publisher: `alias 'hiptest-publisher=/path/to/hiptest-publisher'`
32
+ You will then be able to use hiptest-publisher as if it was locally installed.
33
33
 
34
- ### Local Installation
34
+ ### Using local installation
35
35
 
36
36
  You need to have [Ruby installed on your machine](https://www.ruby-lang.org/en/installation/). You can then install it using gem:
37
37
 
@@ -172,6 +172,17 @@ package = 'com.youcompany'
172
172
 
173
173
  Note that options from command line arguments override options from config file.
174
174
 
175
+ ### Using hiptest-publisher behind a http proxy
176
+
177
+ To use hiptest-publisher behind a http proxy, set an environment variable named http_proxy
178
+ ```
179
+ http_proxy=http://<proxy_host>:<proxy_port>
180
+ ```
181
+ If username and password are required:
182
+ ```
183
+ http_proxy=http://<username>:<password>@<proxy_host>:<proxy_port>
184
+ ```
185
+
175
186
  Posting results to Hiptest
176
187
  --------------------------
177
188
 
@@ -274,5 +274,15 @@ module Hiptest
274
274
  binding.pry
275
275
  ""
276
276
  end
277
+
278
+ def hh_if_includes(context, array, element, block_true, block_false = nil)
279
+ if array.kind_of?(Array) && array.include?(element)
280
+ block_true.fn(context)
281
+ elsif block_false
282
+ block_false.fn(context)
283
+ else
284
+ ''
285
+ end
286
+ end
277
287
  end
278
288
  end
@@ -239,6 +239,7 @@ class OptionsParser
239
239
  Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (cucumber-json, junit, nunit, robot, tap)", :push_format),
240
240
  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
241
  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
+ Option.new(nil, 'parameter-delimiter', '"', String, 'Parameter delimiter (for Gherkin based export only)', :parameter_delimiter),
242
243
  Option.new(nil, 'with-dataset-names', false, nil, 'Export dataset name when creating feature files (note: available only for Gherkin-based exports)', :with_dataset_names),
243
244
  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),
244
245
  Option.new(nil, 'keep-foldernames', false, nil, "Keep the same name as in Hiptest for the folders (note: may cause encoding issues)", :keep_foldernames),
@@ -564,6 +565,7 @@ class LanguageGroupConfig
564
565
  node: node,
565
566
  call_prefix: @language_group_params[:call_prefix],
566
567
  package: @language_group_params[:package],
568
+ parameter_delimiter: @user_params[:parameter_delimiter],
567
569
  namespace: @language_group_params[:namespace],
568
570
  uids: @user_params[:uids],
569
571
  with_dataset_names: @user_params[:with_dataset_names],
@@ -1 +1 @@
1
- ^{{#strip}}{{#join chunks '"'}}{{this.value}}{{/join}}{{#each extra_inlined_parameters}} "{{this.value}}"{{/each}}{{/strip}}$
1
+ ^{{#strip}}{{#join chunks context.parameter_delimiter}}{{this.value}}{{/join}}{{#each extra_inlined_parameters}} {{context.parameter_delimiter}}{{this.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}$
@@ -1 +1 @@
1
- {{#strip}}{{#join chunks '"'}}{{this.value}}{{/join}}{{#each extra_inlined_parameters}} "{{this.value}}"{{/each}}{{/strip}}
1
+ {{#strip}}{{#join chunks context.parameter_delimiter}}{{this.value}}{{/join}}{{#each extra_inlined_parameters}} {{context.parameter_delimiter}}{{this.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
@@ -1 +1 @@
1
- {{#if rendered_children.annotation}}{{{capitalize rendered_children.annotation }}}{{else}}*{{/if}} {{#strip}}{{#join chunks '"'}}{{this.value}}{{/join}}{{#each extra_inlined_arguments}} "{{this.value}}"{{/each}}{{/strip}}
1
+ {{#if rendered_children.annotation}}{{{capitalize rendered_children.annotation }}}{{else}}*{{/if}} {{#strip}}{{#join chunks context.parameter_delimiter}}{{this.value}}{{/join}}{{#each extra_inlined_arguments}} {{context.parameter_delimiter}}{{this.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
@@ -1 +1 @@
1
- {{#strip}}{{#join chunks '"'}}{{#if this.is_parameter}}${{this.name}}{{else}}{{this.value}}{{/if}}{{/join}}{{#each extra_inlined_parameters}} "${{this.name}}"{{/each}}{{/strip}}{{#if has_free_text_parameter?}} """$freeText"""{{/if}}{{#if has_datatable_parameter?}} $datatable{{/if}}
1
+ {{#strip}}{{#join chunks context.parameter_delimiter}}{{#if this.is_parameter}}${{this.name}}{{else}}{{this.value}}{{/if}}{{/join}}{{#each extra_inlined_parameters}} {{context.parameter_delimiter}}${{this.name}}{{context.parameter_delimiter}}{{/each}}{{/strip}}{{#if has_free_text_parameter?}} """$freeText"""{{/if}}{{#if has_datatable_parameter?}} $datatable{{/if}}
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.16.5
4
+ version: 1.16.6
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: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -665,7 +665,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
665
665
  version: '0'
666
666
  requirements: []
667
667
  rubyforge_project:
668
- rubygems_version: 2.7.6
668
+ rubygems_version: 2.7.7
669
669
  signing_key:
670
670
  specification_version: 4
671
671
  summary: Export your tests from Hiptest into executable tests.