hiptest-publisher 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +98 -0
- data/bin/hiptest-publisher +11 -0
- data/lib/hiptest-publisher.rb +121 -0
- data/lib/hiptest-publisher/call_arguments_adder.rb +63 -0
- data/lib/hiptest-publisher/handlebars_helper.rb +97 -0
- data/lib/hiptest-publisher/nodes.rb +380 -0
- data/lib/hiptest-publisher/nodes_walker.rb +45 -0
- data/lib/hiptest-publisher/options_parser.rb +225 -0
- data/lib/hiptest-publisher/parameter_type_adder.rb +139 -0
- data/lib/hiptest-publisher/parent_adder.rb +18 -0
- data/lib/hiptest-publisher/render_context_maker.rb +92 -0
- data/lib/hiptest-publisher/renderer.rb +87 -0
- data/lib/hiptest-publisher/string.rb +52 -0
- data/lib/hiptest-publisher/utils.rb +47 -0
- data/lib/hiptest-publisher/xml_parser.rb +294 -0
- data/lib/templates/common/booleanliteral.hbs +1 -0
- data/lib/templates/common/dataset.hbs +0 -0
- data/lib/templates/common/datatable.hbs +3 -0
- data/lib/templates/common/nullliteral.hbs +1 -0
- data/lib/templates/common/numericliteral.hbs +1 -0
- data/lib/templates/common/stringliteral.hbs +1 -0
- data/lib/templates/common/variable.hbs +1 -0
- data/lib/templates/java/_body.hbs +5 -0
- data/lib/templates/java/_item_as_function.hbs +6 -0
- data/lib/templates/java/_scenario.hbs +7 -0
- data/lib/templates/java/actionword.hbs +1 -0
- data/lib/templates/java/actionwords.hbs +8 -0
- data/lib/templates/java/argument.hbs +1 -0
- data/lib/templates/java/assign.hbs +1 -0
- data/lib/templates/java/binaryexpression.hbs +1 -0
- data/lib/templates/java/call.hbs +1 -0
- data/lib/templates/java/dataset.hbs +3 -0
- data/lib/templates/java/dict.hbs +1 -0
- data/lib/templates/java/field.hbs +1 -0
- data/lib/templates/java/ifthen.hbs +7 -0
- data/lib/templates/java/index.hbs +1 -0
- data/lib/templates/java/list.hbs +1 -0
- data/lib/templates/java/nullliteral.hbs +1 -0
- data/lib/templates/java/output_config +11 -0
- data/lib/templates/java/parameter.hbs +1 -0
- data/lib/templates/java/parenthesis.hbs +1 -0
- data/lib/templates/java/property.hbs +1 -0
- data/lib/templates/java/scenario.hbs +1 -0
- data/lib/templates/java/scenarios.hbs +11 -0
- data/lib/templates/java/single_scenario.hbs +11 -0
- data/lib/templates/java/single_test.hbs +11 -0
- data/lib/templates/java/step.hbs +1 -0
- data/lib/templates/java/stringliteral.hbs +1 -0
- data/lib/templates/java/tag.hbs +1 -0
- data/lib/templates/java/template.hbs +1 -0
- data/lib/templates/java/test.hbs +1 -0
- data/lib/templates/java/testng/_scenario.hbs +8 -0
- data/lib/templates/java/testng/dataset.hbs +4 -0
- data/lib/templates/java/testng/scenarios.hbs +16 -0
- data/lib/templates/java/testng/single_scenario.hbs +11 -0
- data/lib/templates/java/testng/single_test.hbs +11 -0
- data/lib/templates/java/testng/tests.hbs +16 -0
- data/lib/templates/java/tests.hbs +11 -0
- data/lib/templates/java/unaryexpression.hbs +1 -0
- data/lib/templates/java/variable.hbs +1 -0
- data/lib/templates/java/while.hbs +4 -0
- data/lib/templates/python/_body.hbs +10 -0
- data/lib/templates/python/_item_as_def.hbs +2 -0
- data/lib/templates/python/_parameters.hbs +1 -0
- data/lib/templates/python/_scenario.hbs +4 -0
- data/lib/templates/python/actionword.hbs +1 -0
- data/lib/templates/python/actionwords.hbs +9 -0
- data/lib/templates/python/argument.hbs +1 -0
- data/lib/templates/python/assign.hbs +1 -0
- data/lib/templates/python/binaryexpression.hbs +1 -0
- data/lib/templates/python/call.hbs +1 -0
- data/lib/templates/python/dataset.hbs +2 -0
- data/lib/templates/python/dict.hbs +1 -0
- data/lib/templates/python/field.hbs +1 -0
- data/lib/templates/python/ifthen.hbs +4 -0
- data/lib/templates/python/index.hbs +1 -0
- data/lib/templates/python/list.hbs +1 -0
- data/lib/templates/python/nullliteral.hbs +1 -0
- data/lib/templates/python/output_config +9 -0
- data/lib/templates/python/parameter.hbs +1 -0
- data/lib/templates/python/parenthesis.hbs +1 -0
- data/lib/templates/python/project.hbs +2 -0
- data/lib/templates/python/property.hbs +1 -0
- data/lib/templates/python/scenario.hbs +1 -0
- data/lib/templates/python/scenarios.hbs +11 -0
- data/lib/templates/python/single_scenario.hbs +9 -0
- data/lib/templates/python/single_test.hbs +9 -0
- data/lib/templates/python/step.hbs +1 -0
- data/lib/templates/python/tag.hbs +1 -0
- data/lib/templates/python/template.hbs +1 -0
- data/lib/templates/python/test.hbs +1 -0
- data/lib/templates/python/tests.hbs +11 -0
- data/lib/templates/python/unaryexpression.hbs +1 -0
- data/lib/templates/python/while.hbs +4 -0
- data/lib/templates/robotframework/_keyword.hbs +4 -0
- data/lib/templates/robotframework/_scenario.hbs +11 -0
- data/lib/templates/robotframework/actionword.hbs +1 -0
- data/lib/templates/robotframework/actionwords.hbs +4 -0
- data/lib/templates/robotframework/argument.hbs +1 -0
- data/lib/templates/robotframework/assign.hbs +1 -0
- data/lib/templates/robotframework/binaryexpression.hbs +1 -0
- data/lib/templates/robotframework/call.hbs +1 -0
- data/lib/templates/robotframework/dataset.hbs +1 -0
- data/lib/templates/robotframework/datatable.hbs +2 -0
- data/lib/templates/robotframework/dict.hbs +1 -0
- data/lib/templates/robotframework/field.hbs +1 -0
- data/lib/templates/robotframework/ifthen.hbs +1 -0
- data/lib/templates/robotframework/index.hbs +1 -0
- data/lib/templates/robotframework/list.hbs +1 -0
- data/lib/templates/robotframework/nullliteral.hbs +1 -0
- data/lib/templates/robotframework/output_config +8 -0
- data/lib/templates/robotframework/parameter.hbs +1 -0
- data/lib/templates/robotframework/parenthesis.hbs +1 -0
- data/lib/templates/robotframework/project.hbs +2 -0
- data/lib/templates/robotframework/property.hbs +1 -0
- data/lib/templates/robotframework/scenario.hbs +1 -0
- data/lib/templates/robotframework/scenarios.hbs +1 -0
- data/lib/templates/robotframework/single_scenario.hbs +11 -0
- data/lib/templates/robotframework/single_test.hbs +11 -0
- data/lib/templates/robotframework/step.hbs +1 -0
- data/lib/templates/robotframework/stringliteral.hbs +1 -0
- data/lib/templates/robotframework/tag.hbs +1 -0
- data/lib/templates/robotframework/template.hbs +1 -0
- data/lib/templates/robotframework/test.hbs +1 -0
- data/lib/templates/robotframework/tests.hbs +1 -0
- data/lib/templates/robotframework/unaryexpression.hbs +1 -0
- data/lib/templates/robotframework/variable.hbs +1 -0
- data/lib/templates/robotframework/while.hbs +1 -0
- data/lib/templates/ruby/_body.hbs +9 -0
- data/lib/templates/ruby/_item_as_def.hbs +3 -0
- data/lib/templates/ruby/_scenario.hbs +5 -0
- data/lib/templates/ruby/actionword.hbs +1 -0
- data/lib/templates/ruby/actionwords.hbs +6 -0
- data/lib/templates/ruby/argument.hbs +1 -0
- data/lib/templates/ruby/assign.hbs +1 -0
- data/lib/templates/ruby/binaryexpression.hbs +1 -0
- data/lib/templates/ruby/call.hbs +1 -0
- data/lib/templates/ruby/dataset.hbs +3 -0
- data/lib/templates/ruby/dict.hbs +1 -0
- data/lib/templates/ruby/field.hbs +1 -0
- data/lib/templates/ruby/ifthen.hbs +7 -0
- data/lib/templates/ruby/index.hbs +1 -0
- data/lib/templates/ruby/list.hbs +1 -0
- data/lib/templates/ruby/minitest/_item_as_def.hbs +3 -0
- data/lib/templates/ruby/minitest/_scenario.hbs +4 -0
- data/lib/templates/ruby/minitest/dataset.hbs +3 -0
- data/lib/templates/ruby/minitest/output_config +6 -0
- data/lib/templates/ruby/minitest/scenario.hbs +1 -0
- data/lib/templates/ruby/minitest/scenarios.hbs +13 -0
- data/lib/templates/ruby/minitest/single_scenario.hbs +11 -0
- data/lib/templates/ruby/minitest/single_test.hbs +11 -0
- data/lib/templates/ruby/minitest/test.hbs +1 -0
- data/lib/templates/ruby/minitest/tests.hbs +13 -0
- data/lib/templates/ruby/output_config +6 -0
- data/lib/templates/ruby/parameter.hbs +1 -0
- data/lib/templates/ruby/parenthesis.hbs +1 -0
- data/lib/templates/ruby/project.hbs +2 -0
- data/lib/templates/ruby/property.hbs +1 -0
- data/lib/templates/ruby/scenario.hbs +1 -0
- data/lib/templates/ruby/scenarios.hbs +12 -0
- data/lib/templates/ruby/single_scenario.hbs +11 -0
- data/lib/templates/ruby/single_test.hbs +11 -0
- data/lib/templates/ruby/step.hbs +1 -0
- data/lib/templates/ruby/tag.hbs +1 -0
- data/lib/templates/ruby/template.hbs +1 -0
- data/lib/templates/ruby/test.hbs +1 -0
- data/lib/templates/ruby/tests.hbs +12 -0
- data/lib/templates/ruby/unaryexpression.hbs +1 -0
- data/lib/templates/ruby/while.hbs +5 -0
- data/lib/templates/seleniumide/argument.hbs +1 -0
- data/lib/templates/seleniumide/call.hbs +6 -0
- data/lib/templates/seleniumide/output_config +9 -0
- data/lib/templates/seleniumide/single_test.hbs +28 -0
- data/lib/templates/seleniumide/step.hbs +0 -0
- data/lib/templates/seleniumide/stringliteral.hbs +1 -0
- data/lib/templates/seleniumide/template.hbs +1 -0
- data/lib/templates/seleniumide/test.hbs +4 -0
- data/lib/templates/seleniumide/tests.hbs +19 -0
- metadata +404 -0
@@ -0,0 +1 @@
|
|
1
|
+
{{to_string rendered_children.value }}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
nil
|
@@ -0,0 +1 @@
|
|
1
|
+
{{ rendered_children.value }}
|
@@ -0,0 +1 @@
|
|
1
|
+
'{{ rendered_children.value }}'
|
@@ -0,0 +1 @@
|
|
1
|
+
{{ underscore rendered_children.name }}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
public void {{{ camelize_lower rendered_children.name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {
|
2
|
+
{{#clear_empty_lines}}
|
3
|
+
{{#indent}}{{#if has_tags?}}// Tags: {{{ join rendered_children.tags ' '}}}{{/if}}{{/indent}}
|
4
|
+
{{> body}}
|
5
|
+
{{/clear_empty_lines}}
|
6
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{{#if has_datasets?}}{{> item_as_function}}
|
2
|
+
{{{ rendered_children.datatable }}}
|
3
|
+
{{else}}{{#comment '//'}}{{{ rendered_children.description }}}
|
4
|
+
{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
|
5
|
+
{{/comment}}
|
6
|
+
public void test{{{ camelize rendered_children.name }}}() {{#curly}}{{> body}}
|
7
|
+
{{/curly}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_function}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ 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
|
+
{{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}.{{{ rendered_children.name }}}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
if ({{{ rendered_children.condition }}}) {{#curly}}
|
2
|
+
{{#indent}}{{#each rendered_children.then}}{{{this}}}
|
3
|
+
{{/each}}{{/indent}}
|
4
|
+
{{#if has_else?}}{{ close_curly }} else {{open_curly}}
|
5
|
+
{{#indent}}{{#each rendered_children.else}}{{{this}}}
|
6
|
+
{{/each}}{{/indent}}
|
7
|
+
{{/if}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}.get({{{ rendered_children.expression }}})
|
@@ -0,0 +1 @@
|
|
1
|
+
new String[]{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
null
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ node.type }}} {{{ camelize_lower rendered_children.name }}}
|
@@ -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,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import junit.framework.TestCase;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.filename }}} extends TestCase {
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
|
9
|
+
{{/each}}
|
10
|
+
{{/indent}}
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import junit.framework.TestCase;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.test_file_name }}} extends TestCase {{#curly}}
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}
|
9
|
+
{{> scenario}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/curly}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import junit.framework.TestCase;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.test_file_name }}} extends TestCase {{#curly}}
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}
|
9
|
+
{{> scenario}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/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.key }}}{{#if has_value? }}:{{{ rendered_children.value }}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#if variable_names}}String.format({{/if}}"{{#each treated_chunks}}{{#if this.is_variable?}}%s{{else}}{{{ escape_quotes this.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}}, {{{join variable_names ', '}}}){{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{{#if has_datasets?}}{{> item_as_function}}
|
2
|
+
{{{ rendered_children.datatable }}}
|
3
|
+
{{else}}{{#comment '//'}}{{{ rendered_children.description }}}
|
4
|
+
{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
|
5
|
+
{{/comment}}
|
6
|
+
@Test
|
7
|
+
public void {{{ camelize_lower rendered_children.name }}}() {{#curly}}{{> body}}
|
8
|
+
{{/curly}}{{/if}}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import org.testng.annotations.*;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.filename }}} {
|
6
|
+
|
7
|
+
{{#indent}}public Actionwords {{{ context.call_prefix }}};
|
8
|
+
|
9
|
+
@BeforeMethod
|
10
|
+
public void setUp() {
|
11
|
+
{{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
|
12
|
+
}{{/indent}}
|
13
|
+
{{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
|
14
|
+
{{/each}}
|
15
|
+
{{/indent}}
|
16
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import org.testng.annotations.*;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.test_file_name }}} {{#curly}}
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}
|
9
|
+
{{> scenario}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/curly}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import org.testng.annotations.*;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.test_file_name }}} {{#curly}}
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}
|
9
|
+
{{> scenario}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/curly}}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import org.testng.annotations.*;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.filename }}} {
|
6
|
+
|
7
|
+
{{#indent}}public Actionwords {{{ context.call_prefix }}};
|
8
|
+
|
9
|
+
@BeforeMethod
|
10
|
+
public void setUp() {
|
11
|
+
{{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
|
12
|
+
}{{/indent}}
|
13
|
+
{{#indent}}{{#each rendered_children.tests}}{{{this}}}
|
14
|
+
{{/each}}
|
15
|
+
{{/indent}}
|
16
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import junit.framework.TestCase;
|
4
|
+
|
5
|
+
public class {{{ clear_extension context.filename }}} extends TestCase {
|
6
|
+
|
7
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
8
|
+
{{#indent}}{{#each rendered_children.tests}}{{{this}}}
|
9
|
+
{{/each}}
|
10
|
+
{{/indent}}
|
11
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.operator }}}{{{ rendered_children.expression }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{ camelize_lower rendered_children.name }}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{{#clear_empty_lines}}
|
2
|
+
{{#indent}}
|
3
|
+
{{#comment '#'}}{{{ rendered_children.description }}}{{/comment}}
|
4
|
+
{{#if has_tags?}}# Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
|
5
|
+
{{#each rendered_children.body}}{{{this}}}
|
6
|
+
{{/each}}
|
7
|
+
{{#if has_step?}}raise NotImplementedError{{/if}}
|
8
|
+
{{#if is_empty?}}pass{{/if}}
|
9
|
+
{{/indent}}
|
10
|
+
{{/clear_empty_lines}}
|
@@ -0,0 +1 @@
|
|
1
|
+
self{{#if has_parameters?}}, {{{join rendered_children.parameters ', '}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_def}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ underscore rendered_children.name }}} = {{{ 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
|
+
self.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ underscore rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}})
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}.{{{ rendered_children.name }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
[{{{ join rendered_children.items ', '}}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
None
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ underscore rendered_children.name }}}{{#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,11 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
import unittest
|
3
|
+
from actionwords import Actionwords
|
4
|
+
|
5
|
+
class Test{{{ camelize project_name }}}(unittest.TestCase):
|
6
|
+
def setUp(self):
|
7
|
+
self.actionwords = Actionwords(self)
|
8
|
+
{{#indent}}
|
9
|
+
{{#each rendered_children.scenarios}}{{{this}}}
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#comment '#'}}TODO: Implement {{{ rendered_children.key }}}: {{{ rendered_children.value }}}{{/comment}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}{{#if has_value?}}:{{{rendered_children.value}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
"{{#each treated_chunks}}{{#if this.is_variable?}}%s{{else}}{{{ escape_quotes this.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}} % ({{{ join variable_names ', '}}}){{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
import unittest
|
3
|
+
from actionwords import Actionwords
|
4
|
+
|
5
|
+
class Test{{{ camelize project_name }}}(unittest.TestCase):
|
6
|
+
def setUp(self):
|
7
|
+
self.actionwords = Actionwords(self)
|
8
|
+
{{#indent}}
|
9
|
+
{{#each rendered_children.tests}}{{{this}}}
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.operator }}}{{{ rendered_children.expression }}}
|