getgauge-contrib / gauge-maven-plugin

Maven plugin to run gauge specs
GNU General Public License v3.0
20 stars 18 forks source link

mutiple jvm like maven forkCount reuseForks #28

Open gieghia opened 6 years ago

gieghia commented 6 years ago

parallel execute running in the same jvm. in my case not work correctlly.

i know maven support create mutiple jvm for test.

forkCount reuseForks: https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html

Do you have any plans to support create multiple jvm for test?

kashishm commented 6 years ago

By default, Gauge runs multiple JVMs for parallel execution. For example:

mvn gauge:execute -DspecsDir=specs -DinParallel=true -Dnodes=3

The above command will spawn 3 JVMs for parallel execution.

gieghia commented 6 years ago

thank you. inParalle mode my test is failed.

may be my test case not thread-safe?

kashishm commented 6 years ago

The parallel execution will use multiple JVM processes and not threads. You can't share state between multiple JVM processes running different specifications and that might be the reason for the failure.