hiptest-publisher 1.21.0 → 1.22.0

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
- SHA256:
3
- metadata.gz: 9dbc222be552c5f92143031071c6ca766dc99b7590efb9433095257116586a5f
4
- data.tar.gz: f71d71e167427d48a22604c5a7a8172b0708efa1a66bf6ace60f541ddcc6ef5a
2
+ SHA1:
3
+ metadata.gz: 6cdf69058942b8d31c0cf0bb28be35c1fe96f22c
4
+ data.tar.gz: 78a1e2f929a5de1053f56274c6555984c0136db0
5
5
  SHA512:
6
- metadata.gz: de93cabb75518b1b81574f8d335fd9f52d7be484db57f9552a5592e82ac69b175e60a13eb4d1414009005f77bf627eadbd5d73f61528406202e77f6cdb981821
7
- data.tar.gz: f61d5742050bc6107a2d4d3026214cd54242d15164897d860086e5685ae698e1c5b962ac9f46eb078e4c2a5682e7fcfe67b03f72a068555133abdea440e9f0ad
6
+ metadata.gz: '079b4604dc8f521a72a4985837cd9cd280783337c8a68ff6c2450ed0d315625fc7d898dfc3b6873fd5ec463a2db4991987eb82a86f43e93d2e1e828cdd178905'
7
+ data.tar.gz: 695075f59e61603b8972a0c40499f7ed42f04c48edbce740f46edfb534a05f3431c5ef0c1f9a93d83782943e0e8f327fe9bba9b6a7b6372b7430379a70fc2d82
data/README.md CHANGED
@@ -231,4 +231,4 @@ See the [CONTRIBUTING](https://github.com/hiptest/hiptest-publisher/blob/master/
231
231
  Contributors
232
232
  ------------
233
233
 
234
- The @hiptest team, @mhfrantz, @tikolakin, @atulhm, @etorreborre, @daniel-kun, @weeksghost, @lostiniceland, @ClaudiaJ
234
+ The @hiptest team, @mhfrantz, @tikolakin, @atulhm, @etorreborre, @daniel-kun, @weeksghost, @lostiniceland, @ClaudiaJ, @Jesterovskiy, @tenpaiyomi
@@ -0,0 +1,23 @@
1
+ [_common]
2
+ indentation = ' '
3
+ fallback_template = 'empty'
4
+
5
+ [features]
6
+ node_name = folders
7
+ template_dirs = gherkin/inlined_uids, gherkin, common
8
+ named_filename = '%s.feature'
9
+ indentation = ' '
10
+ renderer_addons = 'GherkinAddon'
11
+
12
+ [step_definitions]
13
+ node_name = actionwords
14
+ template_dirs = cucumber/typescript, javascript, common
15
+ filename = 'step_definitions.ts'
16
+ naming_convention = 'camelize_lower'
17
+ call_prefix = 'actionwords'
18
+ renderer_addons = 'GherkinAddon'
19
+
20
+ [actionwords]
21
+ template_dirs = typescript, javascript, common
22
+ filename = 'actionwords.ts'
23
+ naming_convention = 'camelize_lower'
@@ -26,6 +26,7 @@ module Hiptest
26
26
  check_meta
27
27
 
28
28
  if cli_options.push?
29
+ check_execution_environment
29
30
  check_push_file
30
31
  else
31
32
  check_output_directory
@@ -122,6 +123,14 @@ module Hiptest
122
123
  end
123
124
  end
124
125
 
126
+ def check_execution_environment
127
+ if cli_options.execution_environment
128
+ if cli_options.execution_environment.length > 255
129
+ raise CliOptionError, "Error with --execution-environment: the name of the execution environment must be less than 255 characters"
130
+ end
131
+ end
132
+ end
133
+
125
134
  def check_output_directory
126
135
  output_directory = clean_path(cli_options.output_directory)
127
136
 
@@ -188,7 +188,7 @@ class OptionsParser
188
188
 
189
189
  {
190
190
  'Ruby' => ['Rspec', 'MiniTest'],
191
- 'Cucumber' => ['Ruby', 'Java', 'Javascript', 'Groovy'],
191
+ 'Cucumber' => ['Ruby', 'Java', 'Javascript', 'Groovy', 'TypeScript'],
192
192
  'Java' => ['JUnit', 'Test NG', 'Espresso'],
193
193
  'Python' => ['Unittest'],
194
194
  'Robot Framework' => [''],
@@ -0,0 +1,4 @@
1
+ After(async () => {{#curly}}{{#indent}}
2
+
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,4 @@
1
+ Before(async () => {{#curly}}{{#indent}}
2
+ actionWords = new ActionWords();
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation }}
2
+ {{{ rendered_children.gherkin_annotation }}}(/{{> gherkin_pattern}}/, async ({{#if rendered_children.parameters}}{{{ join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}) => {{#curly}}{{#indent}}
3
+ actionWords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{underscore this}}}{{/join}}{{/if}});
4
+ {{/indent}}
5
+ {{/curly}});{{/if}}
@@ -0,0 +1,10 @@
1
+ import {{#curly}} After, Before, Given, When, Then, TableDefinition {{/curly}} from "cucumber";
2
+ import {{#curly}} ActionWords {{/curly}} from './actionwords';
3
+
4
+ let actionWords : ActionWords;
5
+ {{> before_hook}}
6
+
7
+ {{> after_hook}}
8
+
9
+ {{#each rendered_children.actionwords}}{{{this}}}
10
+ {{/each}}
@@ -0,0 +1,3 @@
1
+ {{ camelize_lower rendered_children.name }}({{#if has_parameters?}}{{{ join rendered_children.parameters ', '}}}{{/if}}) {{#curly}}
2
+ {{> body}}
3
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{> item_as_function}}
@@ -0,0 +1,6 @@
1
+ import {{#curly}} TableDefinition {{/curly}} from "cucumber";
2
+
3
+ export class ActionWords {{#curly}}{{#indent}}
4
+ {{#each rendered_children.actionwords}}{{{this}}}
5
+ {{/each}}{{/indent}}
6
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{{ underscore rendered_children.name }}}{{#if is_datatable?}}: TableDefinition{{else}}{{#if has_default_value?}} = {{{ rendered_children.default }}}{{else}}: {{{ node.type }}}{{/if}}{{/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.21.0
4
+ version: 1.22.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-27 00:00:00.000000000 Z
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -74,22 +74,16 @@ dependencies:
74
74
  name: nokogiri
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 1.8.0
80
77
  - - "~>"
81
78
  - !ruby/object:Gem::Version
82
- version: 1.8.0
79
+ version: '1.8'
83
80
  type: :runtime
84
81
  prerelease: false
85
82
  version_requirements: !ruby/object:Gem::Requirement
86
83
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 1.8.0
90
84
  - - "~>"
91
85
  - !ruby/object:Gem::Version
92
- version: 1.8.0
86
+ version: '1.8'
93
87
  - !ruby/object:Gem::Dependency
94
88
  name: multipart-post
95
89
  requirement: !ruby/object:Gem::Requirement
@@ -232,6 +226,7 @@ files:
232
226
  - lib/config/cucumber-java.conf
233
227
  - lib/config/cucumber-javascript.conf
234
228
  - lib/config/cucumber-ruby.conf
229
+ - lib/config/cucumber-typescript.conf
235
230
  - lib/config/groovy-spock.conf
236
231
  - lib/config/java-espresso.conf
237
232
  - lib/config/java-junit.conf
@@ -349,6 +344,10 @@ files:
349
344
  - lib/templates/cucumber/javascript/actionword.hbs
350
345
  - lib/templates/cucumber/javascript/actionwords.hbs
351
346
  - lib/templates/cucumber/parameter.hbs
347
+ - lib/templates/cucumber/typescript/_after_hook.hbs
348
+ - lib/templates/cucumber/typescript/_before_hook.hbs
349
+ - lib/templates/cucumber/typescript/actionword.hbs
350
+ - lib/templates/cucumber/typescript/actionwords.hbs
352
351
  - lib/templates/gherkin/_call.hbs
353
352
  - lib/templates/gherkin/_gherkin_text.hbs
354
353
  - lib/templates/gherkin/_scenario.hbs
@@ -644,6 +643,10 @@ files:
644
643
  - lib/templates/specflow/actionwords/parameter.hbs
645
644
  - lib/templates/specflow/gherkin/tag.hbs
646
645
  - lib/templates/specflow/parameter.hbs
646
+ - lib/templates/typescript/_item_as_function.hbs
647
+ - lib/templates/typescript/actionword.hbs
648
+ - lib/templates/typescript/actionwords.hbs
649
+ - lib/templates/typescript/parameter.hbs
647
650
  homepage: https://hiptest.com
648
651
  licenses:
649
652
  - GPL-2.0
@@ -664,7 +667,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
664
667
  version: '0'
665
668
  requirements: []
666
669
  rubyforge_project:
667
- rubygems_version: 2.7.7
670
+ rubygems_version: 2.6.10
668
671
  signing_key:
669
672
  specification_version: 4
670
673
  summary: Export your tests from HipTest into executable tests.