diff --git a/.rultor.yml b/.rultor.yml index e00d2a8..15f39ab 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -16,13 +16,13 @@ architect: merge: script: | pdd --file=/dev/null - mvn clean install -Pqulice -Pintegration --errors --settings ../settings.xml + mvn clean install -Pqulice -Pintegration -Pcucumber --errors --settings ../settings.xml deploy: script: | - mvn clean deploy -Pqulice -Pintegration --errors --settings ../settings.xml + mvn clean deploy -Pqulice -Pintegration -Pcucumber --errors --settings ../settings.xml release: script: |- [[ "${tag}" =~ ^[0-9]+(\.[0-9]+){2}$ ]] || exit -1 mvn versions:set "-DnewVersion=${tag}" git commit -am "${tag}" - mvn clean deploy -Pcucumber-seeds -Psonar -Pqulice -Pintegration -Psonatype --errors --settings ../settings.xml \ No newline at end of file + mvn clean deploy -Pcucumber-seeds -Psonar -Pqulice -Pintegration -Pcucumber -Psonatype --errors --settings ../settings.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml index acd83f1..c095f3d 100644 --- a/pom.xml +++ b/pom.xml @@ -272,8 +272,14 @@ SOFTWARE. - org.apache.maven.plugins maven-failsafe-plugin + + + org.apache.maven.surefire + surefire-junit47 + 2.22.0 + + **/*ItCase.java diff --git a/seeds-core/pom.xml b/seeds-core/pom.xml index 5856305..c371d84 100644 --- a/seeds-core/pom.xml +++ b/seeds-core/pom.xml @@ -35,7 +35,6 @@ SOFTWARE. org.cactoos cactoos 0.36 - provided diff --git a/seeds-core/src/main/java/com/github/smallcreep/cucumber/seeds/suit/StSmart.java b/seeds-core/src/main/java/com/github/smallcreep/cucumber/seeds/suit/StSmart.java index 6b1492e..fa6396d 100644 --- a/seeds-core/src/main/java/com/github/smallcreep/cucumber/seeds/suit/StSmart.java +++ b/seeds-core/src/main/java/com/github/smallcreep/cucumber/seeds/suit/StSmart.java @@ -81,6 +81,9 @@ public Context context() { @Override public Scenario scenario() { + if (this.scenarios.get(Thread.currentThread().getId()) == null) { + this.start(); + } return this.scenarios.get(Thread.currentThread().getId()); } diff --git a/seeds-db/pom.xml b/seeds-db/pom.xml index 1339158..a836032 100644 --- a/seeds-db/pom.xml +++ b/seeds-db/pom.xml @@ -41,7 +41,6 @@ SOFTWARE. com.jcabi jcabi-jdbc 0.17.1 - provided org.hamcrest diff --git a/test-steps/pom.xml b/test-steps/pom.xml index ba2b1a6..2927a0b 100644 --- a/test-steps/pom.xml +++ b/test-steps/pom.xml @@ -87,11 +87,36 @@ SOFTWARE. - - org.cactoos - cactoos - 0.36 - test - + + + cucumber + + + + maven-surefire-plugin + + + org.apache.maven.surefire + surefire-junit4 + 2.19.1 + + + + + **/*CucumberCase.java + + + + + + test + + + + + + + + diff --git a/test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelTest.java b/test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelCucumberCase.java similarity index 97% rename from test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelTest.java rename to test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelCucumberCase.java index 9cadd80..a03caac 100644 --- a/test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelTest.java +++ b/test-steps/src/test/java/com/github/smallcreep/cucumber/seeds/test/ParallelCucumberCase.java @@ -61,12 +61,12 @@ "~@inprogress" } ) -public final class ParallelTest { +public final class ParallelCucumberCase { /** * Ctor. */ - private ParallelTest() { + private ParallelCucumberCase() { } /**