I would like to run all junit test classes in parallel(due to setup in each test, I DO NOT want tests in a single class running in parallel or they would step on each other with mock changes of state)
I however have some selenium tests that must be run in series but can be run while the other tests are running.
thanks, Dean
I'm more Maven oriented, but shouldn't creating a new task for gradle and setting values to properties maxParallelForks and forkEvery (probably this property should be set to 1) do the job?
Something like example
As per their documentation and some of their forum threads, if you are running test in parallel then it spawns new processes based on your maxParallelForks
property mentioned and in that spawned processes it will run forkEvery
no. of test classes. You can run some of the tasks in sequence by mentioning them as dependent on one other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With