hiptest-publisher 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/lib/hiptest-publisher/options_parser.rb +7 -0
- data/lib/templates/csharp/call.hbs +1 -1
- data/lib/templates/gherkin/single_scenario.hbs +2 -1
- data/lib/templates/java/call.hbs +1 -1
- data/lib/templates/javascript/call.hbs +1 -1
- data/lib/templates/php/call.hbs +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: 714ffc798e863a6f32beb496fc7dc10fe04b0790
|
4
|
+
data.tar.gz: cb6239cecf2145bc9ea74a1349e5674c87a2a558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879173a5ddb5b9d501a11b08c9b95905a5fdd7302fd4f5dc32e02301ae3beecd589946ab3fafc3aed4834e3da993f1638e743bbc43b82bae1e4d45ffe4fa14d1
|
7
|
+
data.tar.gz: 7de6e66d666d8023e0dea0afbf57e046e8d03526505cdcef98edaa5f8b552270548740177507e08bf1a8275b29867348c77800b89ee94ae58e264f67c37a5165
|
data/README.md
CHANGED
@@ -98,9 +98,11 @@ Specific options:
|
|
98
98
|
-l, --language=LANG Target language (default: ruby)
|
99
99
|
-f, --framework=FRAMEWORK Test framework to use
|
100
100
|
-o, --output-directory=PATH Output directory (default: .)
|
101
|
+
--filename-pattern=PATTERN Filename pattern (containing %s)
|
101
102
|
-c, --config-file=PATH Configuration file
|
102
103
|
--overriden-templates=PATH Folder for overriden templates
|
103
|
-
--test-run-id=ID Export data from a test run
|
104
|
+
--test-run-id=ID Export data from a test run identified by its id
|
105
|
+
--test-run-name=NAME Export data from a test run identified by its name
|
104
106
|
--only=CATEGORIES Restrict export to given file categories (--only=list to list them)
|
105
107
|
-x, --xml-file=PROJECT_XML XML file to use instead of fetching it from Hiptest
|
106
108
|
--tests-only (deprecated) alias for --only=tests (default: false)
|
@@ -112,13 +114,18 @@ Specific options:
|
|
112
114
|
--show-actionwords-renamed Output signatures of renamed action words (default: false)
|
113
115
|
--show-actionwords-signature-changed
|
114
116
|
Output signatures of action words for which signature changed (default: false)
|
117
|
+
--show-actionwords-definition-changed
|
118
|
+
Output action words for which definition changed (default: false)
|
115
119
|
--with-folders Use folders hierarchy to export files in respective directories (default: false)
|
116
120
|
--split-scenarios Export each scenario in a single file (default: false)
|
117
121
|
--leafless-export Use only last level action word (default: false)
|
118
122
|
-s, --site=SITE Site to fetch from (default: https://hiptest.net)
|
119
123
|
-p, --push=FILE.TAP Push a results file to the server
|
120
|
-
--push-format=tap Format of the test results (
|
124
|
+
--push-format=tap Format of the test results (junit, nunit, tap, robot) (default: tap)
|
121
125
|
--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)
|
126
|
+
--[no-]uids Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
|
127
|
+
--keep-filenames Keep the same name as in Hiptest for the test files (note: may cause encoding issues) (default: false)
|
128
|
+
--keep-foldernames Keep the same name as in Hiptest for the folders (note: may cause encoding issues) (default: false)
|
122
129
|
-v, --verbose Run verbosely (default: false)
|
123
130
|
-H, --languages-help Show languages and framework options
|
124
131
|
-h, --help Show this message
|
@@ -196,6 +196,9 @@ class OptionsParser
|
|
196
196
|
Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (junit, nunit, tap, robot)", :push_format),
|
197
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),
|
198
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),
|
199
|
+
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),
|
200
|
+
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),
|
201
|
+
Option.new(nil, 'keep-foldernames', false, nil, "Keep the same name as in Hiptest for the folders (note: may cause encoding issues)", :keep_foldernames),
|
199
202
|
Option.new('v', 'verbose', false, nil, "Run verbosely", :verbose)
|
200
203
|
]
|
201
204
|
end
|
@@ -541,11 +544,15 @@ class LanguageGroupConfig
|
|
541
544
|
end
|
542
545
|
|
543
546
|
def normalized_dirname(name)
|
547
|
+
return name if @user_params.keep_foldernames
|
548
|
+
|
544
549
|
dirname_convention = @language_group_params[:dirname_convention] || @language_group_params[:filename_convention] || :normalize
|
545
550
|
name.send(dirname_convention)
|
546
551
|
end
|
547
552
|
|
548
553
|
def normalized_filename(name)
|
554
|
+
return name if @user_params.keep_filenames
|
555
|
+
|
549
556
|
filename_convention = @language_group_params[:filename_convention] || :normalize
|
550
557
|
name.send(filename_convention)
|
551
558
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
{{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
-
{{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_upper rendered_children.actionword }}}({{{ join rendered_children.
|
2
|
+
{{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_upper rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
|
@@ -10,7 +10,8 @@ Examples:{{#indent}}
|
|
10
10
|
{{else}}
|
11
11
|
{{#if has_tags?}}{{join rendered_children.tags ' '}}
|
12
12
|
{{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
|
13
|
-
{{#
|
13
|
+
{{#if has_description?}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}
|
14
|
+
{{/if}}{{#each rendered_children.body}}{{{ this }}}
|
14
15
|
{{/each}}
|
15
16
|
{{/indent}}
|
16
17
|
{{/if}}
|
data/lib/templates/java/call.hbs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
{{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
-
{{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.
|
2
|
+
{{/if}}{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
|
@@ -1,2 +1,2 @@
|
|
1
1
|
{{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
-
{{/if}}this.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.
|
2
|
+
{{/if}}this.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
|
data/lib/templates/php/call.hbs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
{{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
-
{{/if}}{{#if context.call_prefix}}{{{ context.call_prefix }}}->{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.
|
2
|
+
{{/if}}{{#if context.call_prefix}}{{{ context.call_prefix }}}->{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
|
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.18.
|
4
|
+
version: 0.18.2
|
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:
|
11
|
+
date: 2017-01-19 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.
|
609
|
+
rubygems_version: 2.5.1
|
610
610
|
signing_key:
|
611
611
|
specification_version: 4
|
612
612
|
summary: Export your tests from Hiptest into executable tests.
|