hiptest-publisher 0.19.3 → 0.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/java-espresso.conf +15 -0
- data/lib/hiptest-publisher/options_parser.rb +1 -1
- data/lib/templates/java/espresso/_scenario.hbs +8 -0
- data/lib/templates/java/espresso/dataset.hbs +4 -0
- data/lib/templates/java/espresso/folder.hbs +28 -0
- data/lib/templates/java/espresso/scenarios.hbs +23 -0
- data/lib/templates/java/espresso/single_scenario.hbs +24 -0
- data/lib/templates/java/espresso/single_test.hbs +22 -0
- data/lib/templates/java/espresso/tests.hbs +23 -0
- data/lib/templates/robotframework/_scenario.hbs +4 -3
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335199b99a05d67e984b7c9034456256cfb28a43
|
4
|
+
data.tar.gz: de795a4dc8c5f3336ae89fb365389de0d61e8e21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97d19437570083b65c6e9497244e200275d9bbe92387b6eb7c7daca0fe72173304d1754c764ee5a974c92e4bfe21076403074add56669106c9e56c4081d5f6f
|
7
|
+
data.tar.gz: 0ebdec3002083308fc98954858903dbe7e1a357fe8c25723b65cebf088f230f4fbe75f72ea788294a65c6e64812319f96878bdfac013615902f03ff96daf78aa
|
@@ -0,0 +1,15 @@
|
|
1
|
+
[_common]
|
2
|
+
template_dirs = java/espresso, java, common
|
3
|
+
package = 'com.example'
|
4
|
+
indentation = ' '
|
5
|
+
dirname_convention = 'underscore'
|
6
|
+
filename_convention = 'camelize'
|
7
|
+
naming_convention = 'camelize_lower'
|
8
|
+
|
9
|
+
[tests]
|
10
|
+
filename = 'ProjectTest.java'
|
11
|
+
named_filename = '%sTest.java'
|
12
|
+
call_prefix = 'actionwords'
|
13
|
+
|
14
|
+
[actionwords]
|
15
|
+
filename = 'Actionwords.java'
|
@@ -153,7 +153,7 @@ class OptionsParser
|
|
153
153
|
{
|
154
154
|
'Ruby' => ['Rspec', 'MiniTest'],
|
155
155
|
'Cucumber' => ['Ruby', 'Java', 'Javascript'],
|
156
|
-
'Java' => ['JUnit', 'Test NG'],
|
156
|
+
'Java' => ['JUnit', 'Test NG', 'Espresso'],
|
157
157
|
'Python' => ['Unittest'],
|
158
158
|
'Robot Framework' => [''],
|
159
159
|
'Selenium IDE' => [''],
|
@@ -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 test{{{ camelize rendered_children.name }}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}{{> body}}
|
8
|
+
{{/curly}}{{/if}}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
@Test
|
2
|
+
public void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}
|
3
|
+
{{#indent}}{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});{{/indent}}
|
4
|
+
{{/curly}}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
package {{{ context.package }}}{{{ relative_package }}};
|
2
|
+
|
3
|
+
import android.support.test.filters.LargeTest;
|
4
|
+
import android.support.test.rule.ActivityTestRule;
|
5
|
+
import android.support.test.runner.AndroidJUnit4;
|
6
|
+
|
7
|
+
import org.junit.Rule;
|
8
|
+
import org.junit.Test;
|
9
|
+
import org.junit.runner.RunWith;
|
10
|
+
|
11
|
+
@RunWith(AndroidJUnit4.class)
|
12
|
+
@LargeTest
|
13
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
14
|
+
{{#indent}}
|
15
|
+
|
16
|
+
@Rule
|
17
|
+
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
|
18
|
+
|
19
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
20
|
+
{{#unless is_empty?}}protected void setUp() throws Exception {{#curly}}{{#indent}}
|
21
|
+
super.setUp();{{/indent}}
|
22
|
+
{{> body}}
|
23
|
+
{{/curly}}
|
24
|
+
|
25
|
+
{{/unless}}{{#each rendered_children.scenarios}}{{{this}}}
|
26
|
+
{{/each}}
|
27
|
+
{{/indent}}
|
28
|
+
{{/curly}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import android.support.test.filters.LargeTest;
|
4
|
+
import android.support.test.rule.ActivityTestRule;
|
5
|
+
import android.support.test.runner.AndroidJUnit4;
|
6
|
+
|
7
|
+
import org.junit.Rule;
|
8
|
+
import org.junit.Test;
|
9
|
+
import org.junit.runner.RunWith;
|
10
|
+
|
11
|
+
@RunWith(AndroidJUnit4.class)
|
12
|
+
@LargeTest
|
13
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
14
|
+
{{#indent}}
|
15
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
16
|
+
|
17
|
+
@Rule
|
18
|
+
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
|
19
|
+
|
20
|
+
{{#each rendered_children.scenarios}}{{{this}}}
|
21
|
+
{{/each}}
|
22
|
+
{{/indent}}
|
23
|
+
{{/curly}}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import android.support.test.filters.LargeTest;
|
4
|
+
import android.support.test.rule.ActivityTestRule;
|
5
|
+
import android.support.test.runner.AndroidJUnit4;
|
6
|
+
|
7
|
+
import org.junit.Rule;
|
8
|
+
import org.junit.Test;
|
9
|
+
import org.junit.runner.RunWith;
|
10
|
+
|
11
|
+
{{#if needs_to_import_actionwords? }}import {{{ context.package }}}.Actionwords;
|
12
|
+
{{/if}}
|
13
|
+
@RunWith(AndroidJUnit4.class)
|
14
|
+
@LargeTest
|
15
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
16
|
+
{{#indent}}
|
17
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
18
|
+
|
19
|
+
@Rule
|
20
|
+
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
|
21
|
+
|
22
|
+
{{> scenario}}
|
23
|
+
{{/indent}}
|
24
|
+
{{/curly}}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import android.support.test.filters.LargeTest;
|
4
|
+
import android.support.test.rule.ActivityTestRule;
|
5
|
+
import android.support.test.runner.AndroidJUnit4;
|
6
|
+
|
7
|
+
import org.junit.Rule;
|
8
|
+
import org.junit.Test;
|
9
|
+
import org.junit.runner.RunWith;
|
10
|
+
|
11
|
+
@RunWith(AndroidJUnit4.class)
|
12
|
+
@LargeTest
|
13
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
14
|
+
{{#indent}}
|
15
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
16
|
+
|
17
|
+
@Rule
|
18
|
+
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
|
19
|
+
|
20
|
+
{{> scenario}}
|
21
|
+
{{/indent}}
|
22
|
+
{{/curly}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import android.support.test.filters.LargeTest;
|
4
|
+
import android.support.test.rule.ActivityTestRule;
|
5
|
+
import android.support.test.runner.AndroidJUnit4;
|
6
|
+
|
7
|
+
import org.junit.Rule;
|
8
|
+
import org.junit.Test;
|
9
|
+
import org.junit.runner.RunWith;
|
10
|
+
|
11
|
+
@RunWith(AndroidJUnit4.class)
|
12
|
+
@LargeTest
|
13
|
+
public class {{{ clear_extension context.filename }}} {{#curly}}
|
14
|
+
{{#indent}}
|
15
|
+
public Actionwords {{{ context.call_prefix }}} = new Actionwords();
|
16
|
+
|
17
|
+
@Rule
|
18
|
+
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
|
19
|
+
|
20
|
+
{{#each rendered_children.tests}}{{{this}}}
|
21
|
+
{{/each}}
|
22
|
+
{{/indent}}
|
23
|
+
{{/curly}}
|
@@ -5,7 +5,8 @@ Test Template {{{ normalize_with_spaces rendered_children.name }}}
|
|
5
5
|
{{{ rendered_children.datatable }}}
|
6
6
|
|
7
7
|
*** Keywords ***
|
8
|
-
|
8
|
+
|
9
|
+
{{{normalize_with_spaces rendered_children.name }}}{{else}}
|
9
10
|
*** Test Cases ***
|
10
|
-
|
11
|
-
{{{normalize_with_spaces rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{normalize rendered_children.uid}}){{/if}}{{> keyword_body}}
|
11
|
+
|
12
|
+
{{{normalize_with_spaces rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{normalize rendered_children.uid}}){{/if}}{{/if}}{{> keyword_body}}
|
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.19.
|
4
|
+
version: 0.19.4
|
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: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -251,6 +251,7 @@ files:
|
|
251
251
|
- lib/config/cucumber-java.conf
|
252
252
|
- lib/config/cucumber-javascript.conf
|
253
253
|
- lib/config/cucumber-ruby.conf
|
254
|
+
- lib/config/java-espresso.conf
|
254
255
|
- lib/config/java-junit.conf
|
255
256
|
- lib/config/java-testng.conf
|
256
257
|
- lib/config/javascript-jasmine.conf
|
@@ -369,6 +370,13 @@ files:
|
|
369
370
|
- lib/templates/java/call.hbs
|
370
371
|
- lib/templates/java/dataset.hbs
|
371
372
|
- lib/templates/java/dict.hbs
|
373
|
+
- lib/templates/java/espresso/_scenario.hbs
|
374
|
+
- lib/templates/java/espresso/dataset.hbs
|
375
|
+
- lib/templates/java/espresso/folder.hbs
|
376
|
+
- lib/templates/java/espresso/scenarios.hbs
|
377
|
+
- lib/templates/java/espresso/single_scenario.hbs
|
378
|
+
- lib/templates/java/espresso/single_test.hbs
|
379
|
+
- lib/templates/java/espresso/tests.hbs
|
372
380
|
- lib/templates/java/field.hbs
|
373
381
|
- lib/templates/java/folder.hbs
|
374
382
|
- lib/templates/java/ifthen.hbs
|