Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pass parallel and forkCount paramters to testng through maven command line

Tags:

maven

testng

How can you pass "parallel" and "forkCount" properties to testNG using the maven command line?

like image 590
ryudice Avatar asked Oct 26 '25 17:10

ryudice


1 Answers

According to the documentation:

  1. parallel

(TestNG provider) When you use the parallel attribute, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution.

User property is: parallel.

  1. forkCount

User property is: forkCount.

So you can use them like:

mvn test -Dparallel=<value> -DforkCount=<value>

like image 93
juherr Avatar answered Oct 28 '25 05:10

juherr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!