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 +4 -4
- data/README.md +3 -3
- data/lib/hiptest-publisher/handlebars_helper.rb +11 -1
- data/lib/hiptest-publisher/options_parser.rb +1 -1
- 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: 022ac15f7f0c91507fa65a5643de30fead66738d
|
4
|
+
data.tar.gz: 7355b77f8e1e5a6767a276b94d27b75c305a8c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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=[
|
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
|
-
|
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 (
|
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.
|
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-
|
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
|
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.
|