Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutiple jvm like maven forkCount reuseForks #28

Open
gieghia opened this issue Dec 12, 2017 · 3 comments
Open

mutiple jvm like maven forkCount reuseForks #28

gieghia opened this issue Dec 12, 2017 · 3 comments

Comments

@gieghia
Copy link

gieghia commented Dec 12, 2017

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?

@gieghia gieghia changed the title maven forkCount reuseForks is not support? miltiple jvm like maven forkCount reuseForks Dec 12, 2017
@gieghia gieghia changed the title miltiple jvm like maven forkCount reuseForks mutiple jvm like maven forkCount reuseForks Dec 12, 2017
@kashishm
Copy link
Member

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
Copy link
Author

gieghia commented Dec 12, 2017

thank you.
inParalle mode my test is failed.

may be my test case not thread-safe?

@kashishm
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants