hiptest-publisher 0.15.8 → 0.15.9

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: 06f3f3f0a0b81313e034a884d1b7c56653f5428d
4
- data.tar.gz: afdfce04cb2dba3e9417dfe132a09a067d121657
3
+ metadata.gz: 022ac15f7f0c91507fa65a5643de30fead66738d
4
+ data.tar.gz: 7355b77f8e1e5a6767a276b94d27b75c305a8c27
5
5
  SHA512:
6
- metadata.gz: 25f9308f95e9caaa5a34e3b8e08e1b1dd3cf41eb6100936f32f11b8050e3cd982096429cbc878135c21b551d779f1ba7fd5d7a0f50b036e4cddbcf3af17009a4
7
- data.tar.gz: fda5f7a57ca6512c3b37a0088ea45abcf0d75c88cf279304d0647bed381b4b0ac5c67609b52224ffa0d1aef0966a82f2a536f214febc8c8153973aab0fb615cd
6
+ metadata.gz: 52e690c26642740d83744044ea6fd2f599cb8469556668956f06b3a249853552ebb6d51bc63fec085b371389f04c825822e379e652ac52ba654a105647c9ed08
7
+ data.tar.gz: 2367aee3013df421e9a2203773f49f81dc73b2d3caecd16c94ee0c537de2583a1415d27cedbdb618d2fc79efada70b24dd1303e669adac742d8ea11b42448987
data/README.md CHANGED
@@ -155,12 +155,12 @@ Posting results to Hiptest
155
155
 
156
156
  You can use the options --push to push the results back to Hiptest. For this, you first need to generate the test code from a Test run by specifying option ``--test-run-id=<xxx>`` during code generation (or add it to the configuration file).
157
157
  The tests must then generate a test report that is supported by Hiptest. Currently four types of test results are handled:
158
- - tap (Test Anything Protocol)
159
158
  - jUnit XML format
160
- - NUnit XML format
159
+ - [NUnit XML v2 format](https://github.com/nunit/docs/wiki/XML-Formats#v2-test-results)
160
+ - [TAP (Test Anything Protocol)](https://testanything.org/)
161
161
  - Robot framework XML output
162
162
 
163
- You can specify the type of export when pushing by using the option "--push-format=[tap|junit|nunit|robot]" or specifying it in the config file.
163
+ You can specify the type of export when pushing by using the option "--push-format=[junit|nunit|tap|robot]" or specifying it in the config file.
164
164
 
165
165
  You can push multiple files at once (using wildcard) but in that case, do not forget to add quotes. For examples:
166
166
 
@@ -162,7 +162,17 @@ module Hiptest
162
162
  s = s.fn(context)
163
163
  end
164
164
 
165
- s ? s.gsub(/^("|')|("|')$/, '') : ""
165
+ if s.nil?
166
+ ""
167
+ elsif surrounded_with?(s, "'") || surrounded_with?(s, '"')
168
+ s.slice(1...-1)
169
+ else
170
+ s
171
+ end
172
+ end
173
+
174
+ def surrounded_with?(main, sub)
175
+ main.start_with?(sub) && main.end_with?(sub)
166
176
  end
167
177
 
168
178
  def hh_comment (context, commenter, block)
@@ -186,7 +186,7 @@ class OptionsParser
186
186
  Option.new(nil, 'leafless-export', false, nil, "Use only last level action word", :leafless_export),
187
187
  Option.new('s', 'site=SITE', 'https://hiptest.net', String, "Site to fetch from", :site),
188
188
  Option.new('p', 'push=FILE.TAP', '', String, "Push a results file to the server", :push),
189
- Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (tap, junit, nunit, robot)", :push_format),
189
+ Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (junit, nunit, tap, robot)", :push_format),
190
190
  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
191
  Option.new(nil, 'no-uids', false, nil, 'Do not export UIDs (note: only for Gherkin-based exports, may cause issue when pushing results back)', :no_uids),
192
192
  Option.new('v', 'verbose', false, nil, "Run verbosely", :verbose)
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.15.8
4
+ version: 0.15.9
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-07-27 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -605,7 +605,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
605
605
  version: '0'
606
606
  requirements: []
607
607
  rubyforge_project:
608
- rubygems_version: 2.4.8
608
+ rubygems_version: 2.6.4
609
609
  signing_key:
610
610
  specification_version: 4
611
611
  summary: Export your tests from Hiptest into executable tests.