hiptest-publisher 1.29.2 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/config/locales/en.yml +7 -0
- data/lib/config/swift-xctest.conf +18 -0
- data/lib/hiptest-publisher.rb +1 -3
- data/lib/hiptest-publisher/client.rb +26 -4
- data/lib/hiptest-publisher/export_cache.rb +85 -0
- data/lib/hiptest-publisher/formatters/reporter.rb +4 -0
- data/lib/hiptest-publisher/handlebars_helper.rb +13 -4
- data/lib/hiptest-publisher/options_parser.rb +6 -0
- data/lib/templates/behat/actionword.hbs +1 -1
- data/lib/templates/behat/actionwords.hbs +2 -2
- data/lib/templates/behat/library.hbs +2 -2
- data/lib/templates/behat/libraryactionword.hbs +1 -1
- data/lib/templates/behave/actionword.hbs +2 -2
- data/lib/templates/behave/actionwords.hbs +2 -2
- data/lib/templates/behave/library.hbs +2 -2
- data/lib/templates/behave/libraryactionword.hbs +2 -2
- data/lib/templates/common/_gherkin_pattern.hbs +1 -1
- data/lib/templates/common/datatable.hbs +2 -2
- data/lib/templates/csharp/_body.hbs +1 -1
- data/lib/templates/csharp/actionwords.hbs +2 -2
- data/lib/templates/csharp/folder.hbs +1 -1
- data/lib/templates/csharp/ifthen.hbs +2 -2
- data/lib/templates/csharp/scenarios.hbs +1 -1
- data/lib/templates/csharp/template.hbs +1 -1
- data/lib/templates/csharp/tests.hbs +1 -1
- data/lib/templates/csharp/while.hbs +1 -1
- data/lib/templates/cucumber/actionwords.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/library.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionwords.hbs +1 -1
- data/lib/templates/cucumber/javascript/actionword.hbs +1 -1
- data/lib/templates/cucumber/javascript/actionwords.hbs +1 -1
- data/lib/templates/cucumber/typescript/actionword.hbs +1 -1
- data/lib/templates/cucumber/typescript/actionwords.hbs +1 -1
- data/lib/templates/cucumber/typescript/library.hbs +1 -1
- data/lib/templates/cucumber/typescript/libraryactionword.hbs +1 -1
- data/lib/templates/gherkin/_gherkin_text.hbs +1 -1
- data/lib/templates/gherkin/_scenario.hbs +2 -2
- data/lib/templates/gherkin/datatable.hbs +1 -1
- data/lib/templates/gherkin/folder.hbs +3 -3
- data/lib/templates/gherkin/single_test.hbs +1 -1
- data/lib/templates/gherkin/template.hbs +1 -1
- data/lib/templates/groovy/_steps.hbs +1 -1
- data/lib/templates/groovy/actionwords.hbs +2 -2
- data/lib/templates/groovy/datatable.hbs +1 -1
- data/lib/templates/groovy/folder.hbs +2 -2
- data/lib/templates/groovy/libraries.hbs +3 -3
- data/lib/templates/groovy/library.hbs +2 -2
- data/lib/templates/groovy/scenarios.hbs +1 -1
- data/lib/templates/groovy/template.hbs +1 -1
- data/lib/templates/groovy/tests.hbs +1 -1
- data/lib/templates/java/_body.hbs +1 -1
- data/lib/templates/java/actionwords.hbs +2 -2
- data/lib/templates/java/espresso/folder.hbs +1 -1
- data/lib/templates/java/espresso/scenarios.hbs +1 -1
- data/lib/templates/java/espresso/tests.hbs +1 -1
- data/lib/templates/java/folder.hbs +1 -1
- data/lib/templates/java/ifthen.hbs +2 -2
- data/lib/templates/java/libraries.hbs +3 -3
- data/lib/templates/java/library.hbs +2 -2
- data/lib/templates/java/scenarios.hbs +1 -1
- data/lib/templates/java/template.hbs +1 -1
- data/lib/templates/java/testng/folder.hbs +1 -1
- data/lib/templates/java/testng/scenarios.hbs +1 -1
- data/lib/templates/java/testng/tests.hbs +1 -1
- data/lib/templates/java/tests.hbs +1 -1
- data/lib/templates/java/while.hbs +1 -1
- data/lib/templates/javascript/_body.hbs +2 -2
- data/lib/templates/javascript/actionwords.hbs +2 -2
- data/lib/templates/javascript/codeceptjs/actionword.hbs +1 -1
- data/lib/templates/javascript/codeceptjs/actionwords.hbs +1 -1
- data/lib/templates/javascript/es6/actionwords.hbs +2 -2
- data/lib/templates/javascript/folder.hbs +1 -1
- data/lib/templates/javascript/ifthen.hbs +2 -2
- data/lib/templates/javascript/jasmine/folder.hbs +1 -1
- data/lib/templates/javascript/jasmine/scenarios.hbs +1 -1
- data/lib/templates/javascript/jasmine/tests.hbs +1 -1
- data/lib/templates/javascript/mocha/folder.hbs +1 -1
- data/lib/templates/javascript/scenarios.hbs +1 -1
- data/lib/templates/javascript/template.hbs +1 -1
- data/lib/templates/javascript/tests.hbs +1 -1
- data/lib/templates/javascript/while.hbs +1 -1
- data/lib/templates/jbehave/_scenario.hbs +1 -1
- data/lib/templates/jbehave/folder.hbs +3 -3
- data/lib/templates/jbehave/single_test.hbs +1 -1
- data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -1
- data/lib/templates/jbehave/steps/actionword.hbs +1 -1
- data/lib/templates/jbehave/steps/actionwords.hbs +1 -1
- data/lib/templates/php/_body.hbs +1 -1
- data/lib/templates/php/actionwords.hbs +2 -2
- data/lib/templates/php/folder.hbs +1 -1
- data/lib/templates/php/ifthen.hbs +2 -2
- data/lib/templates/php/libraries.hbs +4 -4
- data/lib/templates/php/library.hbs +2 -2
- data/lib/templates/php/scenarios.hbs +1 -1
- data/lib/templates/php/template.hbs +1 -1
- data/lib/templates/php/tests.hbs +1 -1
- data/lib/templates/php/while.hbs +1 -1
- data/lib/templates/python/_body.hbs +1 -1
- data/lib/templates/python/actionwords.hbs +1 -1
- data/lib/templates/python/folder.hbs +1 -1
- data/lib/templates/python/libraries.hbs +4 -4
- data/lib/templates/python/library.hbs +1 -1
- data/lib/templates/python/scenarios.hbs +1 -1
- data/lib/templates/python/template.hbs +1 -1
- data/lib/templates/python/tests.hbs +1 -1
- data/lib/templates/python/unittest/actionwords.hbs +1 -1
- data/lib/templates/python/while.hbs +1 -1
- data/lib/templates/robotframework/_keyword_body.hbs +1 -1
- data/lib/templates/robotframework/_scenario.hbs +1 -1
- data/lib/templates/robotframework/actionwords.hbs +1 -1
- data/lib/templates/robotframework/datatable.hbs +1 -1
- data/lib/templates/robotframework/folder.hbs +16 -16
- data/lib/templates/robotframework/scenarios.hbs +15 -15
- data/lib/templates/robotframework/template.hbs +1 -1
- data/lib/templates/robotframework/tests.hbs +2 -2
- data/lib/templates/ruby/_body.hbs +1 -1
- data/lib/templates/ruby/actionwords.hbs +2 -2
- data/lib/templates/ruby/folder.hbs +1 -1
- data/lib/templates/ruby/ifthen.hbs +2 -2
- data/lib/templates/ruby/minitest/folder.hbs +1 -1
- data/lib/templates/ruby/minitest/scenarios.hbs +1 -1
- data/lib/templates/ruby/minitest/tests.hbs +1 -1
- data/lib/templates/ruby/scenarios.hbs +1 -1
- data/lib/templates/ruby/template.hbs +1 -1
- data/lib/templates/ruby/tests.hbs +1 -1
- data/lib/templates/ruby/while.hbs +1 -1
- data/lib/templates/seleniumide/call.hbs +1 -1
- data/lib/templates/seleniumide/single_test.hbs +1 -1
- data/lib/templates/seleniumide/tests.hbs +1 -1
- data/lib/templates/specflow/actionword.hbs +1 -1
- data/lib/templates/specflow/actionwords.hbs +2 -2
- data/lib/templates/swift/_body.hbs +11 -0
- data/lib/templates/swift/_item_as_def.hbs +5 -0
- data/lib/templates/swift/_scenario.hbs +7 -0
- data/lib/templates/swift/actionword.hbs +1 -0
- data/lib/templates/swift/actionwords.hbs +6 -0
- data/lib/templates/swift/argument.hbs +1 -0
- data/lib/templates/swift/assign.hbs +1 -0
- data/lib/templates/swift/binaryexpression.hbs +1 -0
- data/lib/templates/swift/call.hbs +2 -0
- data/lib/templates/swift/dataset.hbs +4 -0
- data/lib/templates/swift/dict.hbs +1 -0
- data/lib/templates/swift/field.hbs +1 -0
- data/lib/templates/swift/folder.hbs +23 -0
- data/lib/templates/swift/ifthen.hbs +7 -0
- data/lib/templates/swift/index.hbs +1 -0
- data/lib/templates/swift/list.hbs +1 -0
- data/lib/templates/swift/parameter.hbs +1 -0
- data/lib/templates/swift/parenthesis.hbs +1 -0
- data/lib/templates/swift/project.hbs +2 -0
- data/lib/templates/swift/property.hbs +1 -0
- data/lib/templates/swift/scenario.hbs +1 -0
- data/lib/templates/swift/scenarios.hbs +25 -0
- data/lib/templates/swift/single_scenario.hbs +24 -0
- data/lib/templates/swift/single_test.hbs +23 -0
- data/lib/templates/swift/step.hbs +1 -0
- data/lib/templates/swift/stringliteral.hbs +1 -0
- data/lib/templates/swift/symbol.hbs +1 -0
- data/lib/templates/swift/tag.hbs +1 -0
- data/lib/templates/swift/template.hbs +1 -0
- data/lib/templates/swift/test.hbs +1 -0
- data/lib/templates/swift/tests.hbs +25 -0
- data/lib/templates/swift/while.hbs +5 -0
- data/lib/templates/typescript/actionwords.hbs +1 -1
- data/lib/templates/typescript/libraries.hbs +4 -4
- data/lib/templates/typescript/library.hbs +1 -1
- metadata +73 -40
@@ -1 +1 @@
|
|
1
|
-
{{#each treated_chunks}}{{#if
|
1
|
+
{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}${{#curly}}{{{treated_chunk.raw.children.name}}}{{/curly}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{{#comment '#'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
4
|
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
5
|
{{/if}}{{/comment}}
|
6
|
-
{{#each rendered_children.body}}{{{
|
6
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
7
7
|
{{/each}}
|
8
8
|
{{#if has_step?}}raise NotImplementedError{{/if}}
|
9
9
|
{{/indent}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
if ({{{ rendered_children.condition }}})
|
2
|
-
{{#indent}}{{#each rendered_children.then}}{{{
|
2
|
+
{{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}{{/each}}
|
3
3
|
{{/indent}}
|
4
4
|
{{#if has_else?}}else
|
5
|
-
{{#indent}}{{#each rendered_children.else}}{{{
|
5
|
+
{{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}{{/each}}
|
6
6
|
{{/indent}}
|
7
7
|
{{/if}}end
|
@@ -6,7 +6,7 @@ require_relative 'actionwords'
|
|
6
6
|
class Test{{{ camelize self_name }}} < MiniTest::Unit::TestCase
|
7
7
|
include Actionwords
|
8
8
|
{{#indent}}
|
9
|
-
{{#each rendered_children.scenarios}}{{{
|
9
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
10
10
|
|
11
11
|
{{/each}}
|
12
12
|
{{/indent}}
|
@@ -6,7 +6,7 @@ require_relative 'actionwords'
|
|
6
6
|
class Test{{{ camelize self_name }}} < MiniTest::Unit::TestCase
|
7
7
|
include Actionwords
|
8
8
|
{{#indent}}
|
9
|
-
{{#each rendered_children.tests}}{{{
|
9
|
+
{{#each rendered_children.tests as |test|}}{{{test}}}
|
10
10
|
|
11
11
|
{{/each}}
|
12
12
|
{{/indent}}
|
@@ -5,7 +5,7 @@ require_relative 'actionwords'
|
|
5
5
|
describe '{{{ escape_single_quotes self_name }}}' do
|
6
6
|
include Actionwords
|
7
7
|
{{#indent}}
|
8
|
-
{{#each rendered_children.scenarios}}{{{
|
8
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
9
9
|
|
10
10
|
{{/each}}
|
11
11
|
{{/indent}}
|
@@ -1 +1 @@
|
|
1
|
-
"{{#each treated_chunks}}{{#if
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}#{{#curly}}{{{treated_chunk.raw.children.name}}}{{/curly}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{{#if rendered_children.gherkin_annotation }}[Given("{{#escape_double_quotes}}{{> gherkin_pattern}}{{/escape_double_quotes}}"), When("{{#escape_double_quotes}}{{> gherkin_pattern}}{{/escape_double_quotes}}"), Then("{{#escape_double_quotes}}{{> gherkin_pattern}}{{/escape_double_quotes}}")]
|
2
2
|
public void {{{ camelize_upper rendered_children.name }}}({{#if has_parameters?}}{{{join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}) {{#curly}}{{#indent}}
|
3
|
-
{{{ context.call_prefix }}}.{{ camelize_upper rendered_children.name }}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{camelize_lower
|
3
|
+
{{{ context.call_prefix }}}.{{ camelize_upper rendered_children.name }}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}});
|
4
4
|
{{/indent}}
|
5
5
|
{{/curly}}
|
6
6
|
{{/if}}
|
@@ -6,8 +6,8 @@ using TechTalk.SpecFlow;
|
|
6
6
|
public class StepDefinitions {{#curly}}{{#indent}}
|
7
7
|
|
8
8
|
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
9
|
-
{{#each rendered_children.actionwords}}
|
10
|
-
{{{
|
9
|
+
{{#each rendered_children.actionwords as |actionword|}}
|
10
|
+
{{{actionword}}}{{/each}}
|
11
11
|
{{/indent}}
|
12
12
|
{{/curly}}
|
13
13
|
{{/indent}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{{#clear_empty_lines}}
|
2
|
+
{{#indent}}
|
3
|
+
{{#comment '//'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
|
+
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
|
+
{{/if}}{{/comment}}
|
6
|
+
|
7
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
8
|
+
{{/each}}
|
9
|
+
{{#if has_step?}}raise NotImplementedError{{/if}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/clear_empty_lines}}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{{#if has_datasets?}}
|
2
|
+
{{> item_as_def}}
|
3
|
+
{{{ rendered_children.datatable }}}{{else}}func test{{{ camelize rendered_children.name }}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}{{#indent}}
|
4
|
+
{{> body}}
|
5
|
+
{{/indent}}
|
6
|
+
{{/curly}}
|
7
|
+
{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_def}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{downcase rendered_children.name }}}: {{{escape_new_line rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.to }}} = {{{ rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.left }}} {{{ rendered_children.operator }}} {{{ rendered_children.right }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}.{{{ rendered_children.name }}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import XCTest
|
2
|
+
|
3
|
+
class {{{ clear_extension context.filename }}}: XCTestCase {{#curly}}
|
4
|
+
{{#indent}}
|
5
|
+
var app: XCUIApplication!
|
6
|
+
|
7
|
+
override func setUp() {{#curly}}{{#indent}}
|
8
|
+
super.setUp()
|
9
|
+
|
10
|
+
// Since UI tests are more expensive to run, it's usually a good idea to exit if a failure was encountered
|
11
|
+
continueAfterFailure = false
|
12
|
+
|
13
|
+
app = XCUIApplication()
|
14
|
+
|
15
|
+
// We send a command line argument to our app, to enable it to reset its state
|
16
|
+
app.launchArguments.append("--uitesting")
|
17
|
+
{{/indent}}
|
18
|
+
{{/curly}}
|
19
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
20
|
+
|
21
|
+
{{/each}}
|
22
|
+
{{/indent}}
|
23
|
+
{{/curly}}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
if ({{{ rendered_children.condition }}}) {{#curly}}
|
2
|
+
{{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}{{/each}}
|
3
|
+
{{/indent}}
|
4
|
+
{{/curly}}{{#if has_else?}} else {{#curly}}
|
5
|
+
{{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}{{/each}}
|
6
|
+
{{/indent}}
|
7
|
+
{{/curly}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{{{ join rendered_children.items ', '}}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ downcase rendered_children.name }}}: String{{#if has_default_value?}} = {{{ rendered_children.default }}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
({{{ rendered_children.content }}})
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}: {{{ rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import XCTest
|
2
|
+
|
3
|
+
class {{{ clear_extension context.filename }}}: XCTestCase {{#curly}}
|
4
|
+
{{#indent}}
|
5
|
+
var app: XCUIApplication!
|
6
|
+
|
7
|
+
override func setUp() {{#curly}}{{#indent}}
|
8
|
+
super.setUp()
|
9
|
+
|
10
|
+
// Since UI tests are more expensive to run, it's usually a good idea to exit if a failure was encountered
|
11
|
+
continueAfterFailure = false
|
12
|
+
|
13
|
+
app = XCUIApplication()
|
14
|
+
|
15
|
+
// We send a command line argument to our app, to enable it to reset its state
|
16
|
+
app.launchArguments.append("--uitesting")
|
17
|
+
app.launch()
|
18
|
+
{{/indent}}
|
19
|
+
{{/curly}}
|
20
|
+
|
21
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
22
|
+
|
23
|
+
{{/each}}
|
24
|
+
{{/indent}}
|
25
|
+
{{/curly}}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import XCTest
|
2
|
+
|
3
|
+
class {{{ clear_extension context.filename }}}: XCTestCase {{#curly}}
|
4
|
+
{{#indent}}
|
5
|
+
var app: XCUIApplication!
|
6
|
+
|
7
|
+
override func setUp() {{#curly}}{{#indent}}
|
8
|
+
super.setUp()
|
9
|
+
|
10
|
+
// Since UI tests are more expensive to run, it's usually a good idea to exit if a failure was encountered
|
11
|
+
continueAfterFailure = false
|
12
|
+
|
13
|
+
app = XCUIApplication()
|
14
|
+
|
15
|
+
// We send a command line argument to our app, to enable it to reset its state
|
16
|
+
app.launchArguments.append("--uitesting")
|
17
|
+
app.launch()
|
18
|
+
{{/indent}}
|
19
|
+
{{/curly}}
|
20
|
+
|
21
|
+
{{> scenario}}
|
22
|
+
|
23
|
+
{{/indent}}
|
24
|
+
{{/curly}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import XCTest
|
2
|
+
|
3
|
+
class {{{ clear_extension context.filename }}}: XCTestCase {{#curly}}
|
4
|
+
{{#indent}}
|
5
|
+
var app: XCUIApplication!
|
6
|
+
|
7
|
+
override func setUp() {{#curly}}{{#indent}}
|
8
|
+
super.setUp()
|
9
|
+
|
10
|
+
// Since UI tests are more expensive to run, it's usually a good idea to exit if a failure was encountered
|
11
|
+
continueAfterFailure = false
|
12
|
+
|
13
|
+
app = XCUIApplication()
|
14
|
+
|
15
|
+
// We send a command line argument to our app, to enable it to reset its state
|
16
|
+
app.launchArguments.append("--uitesting")
|
17
|
+
|
18
|
+
app.launch()
|
19
|
+
{{/indent}}
|
20
|
+
{{/curly}}
|
21
|
+
{{> scenario}}
|
22
|
+
{{/indent}}
|
23
|
+
{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#comment '//'}}TODO: Implement {{{rendered_children.key}}}: {{{rendered_children.value}}}{{/comment}}
|
@@ -0,0 +1 @@
|
|
1
|
+
"{{ rendered_children.value }}"
|
@@ -0,0 +1 @@
|
|
1
|
+
{{rendered_children.delimiter}}{{to_string rendered_children.value }}{{rendered_children.delimiter}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}{{#if has_value?}}:{{{rendered_children.value}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}#{{#curly}}{{{treated_chunk.raw.children.name}}}{{/curly}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import XCTest
|
2
|
+
|
3
|
+
class {{{ clear_extension context.filename }}}: XCTestCase {{#curly}}
|
4
|
+
{{#indent}}
|
5
|
+
var app: XCUIApplication!
|
6
|
+
|
7
|
+
override func setUp() {{#curly}}{{#indent}}
|
8
|
+
super.setUp()
|
9
|
+
|
10
|
+
// Since UI tests are more expensive to run, it's usually a good idea to exit if a failure was encountered
|
11
|
+
continueAfterFailure = false
|
12
|
+
|
13
|
+
app = XCUIApplication()
|
14
|
+
|
15
|
+
// We send a command line argument to our app, to enable it to reset its state
|
16
|
+
app.launchArguments.append("--uitesting")
|
17
|
+
app.launch()
|
18
|
+
{{/indent}}
|
19
|
+
{{/curly}}
|
20
|
+
|
21
|
+
{{#each rendered_children.tests as |test|}}{{{test}}}
|
22
|
+
|
23
|
+
{{/each}}
|
24
|
+
{{/indent}}
|
25
|
+
{{/curly}}
|
@@ -2,6 +2,6 @@ import { TableDefinition } from "cucumber";
|
|
2
2
|
{{#if uses_library?}}import { ActionwordLibrary } from "./actionword_library";{{/if}}
|
3
3
|
|
4
4
|
export class ActionWords{{#if uses_library?}} extends ActionwordLibrary{{/if}} {{#curly}}{{#indent}}
|
5
|
-
{{#each rendered_children.actionwords}}{{{
|
5
|
+
{{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
|
6
6
|
{{/each}}{{/indent}}
|
7
7
|
{{/curly}}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
{{#each library_names}}import { {{camelize
|
1
|
+
{{#each library_names as |library_name|}}import { {{camelize library_name}}Library } from "./{{downcase library_name}}_library"
|
2
2
|
{{/each}}
|
3
3
|
|
4
|
-
export class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names}}
|
5
|
-
get{{camelize
|
6
|
-
return new {{camelize
|
4
|
+
export class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names as |library_name|}}
|
5
|
+
get{{camelize library_name}}Library() {{#curly}}{{#indent}}
|
6
|
+
return new {{camelize library_name}}Library(){{/indent}}
|
7
7
|
{{/curly}}
|
8
8
|
{{/each}}{{/indent}}
|
9
9
|
{{/curly}}
|