-
Notifications
You must be signed in to change notification settings - Fork 42
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
A Question: Maven Failsafe <threadCount> instead of <forkCount> for parallel run #153
Comments
As Cucable does not run the tests but only slices the test resources, this is in my opinion more a question of Maven. |
@laxersaz If parallel execution is completely in control of maven then why do we use below property in cucuable plugin: Also i agree maven runs and controls the execution but it does matter how are we configuring our key plugins in it. Now if you see that maven runs multi threads using instead of actually but it doesn't work while using our cucuable plugin. thats my basic question. |
Maven runs the tests by using Surefire or Failsafe. |
Here is what the config after your suggestion: But its not running anything in parallel
|
Does this run any tests? |
yes it does. So i specified -Dthreads=2 and gave 3 tags to run. It executed 3 tags but in sequence and not in parallel. |
So this setup should create two runner classes with multiple feature references inside.
|
i tried parallel with methods and it doesnt work at all. Same is suggested on cucumber official documents. |
Can you point me to the official documents where this is mentioned? |
Please see here |
If you see below comment on from cucumber github issues, maybe you can get it what configuration can work:
|
Then I would try it without Cucable and let Cucumber handle the parallelization. Or use Cucable to generate one runner that includes all needed features. |
yeah unfortunately cucumber parallelization doesnt work with our plugin approach. But its ok i have managed to manipulate the forked jvms. Just another small question before i close the thread is, can we create a runner or multiple runners for a single scenario? like i want to run scenario @123 for 40 times. Is there any configuration that help achieve it ? Thanks. |
Yes, just use |
Can this be closed now, @Naumansh ? |
Question
As in the shared example project from Cucuable Readme, we use as a parameter to specify the number of threads we want to run for parallel execution. The issue with forkCount approach is that it create separate jvm instances according to the number of thread count which impacts the execution resources and also static contents of the test code.
The general approach is to use tag which will run multi threads in same jvm but it doesn't work with cucable plugin and it runs a single test only instead of specified number of threads.
Disclaimer: I truly believe this question is not related to Maven.
A helpful response will be really appreciated in this context. Thanks.
The text was updated successfully, but these errors were encountered: