Details
Assignee
UnassignedUnassignedReporter
Ron RoskensRon RoskensLabels
Components
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Ron Roskens
Ron RoskensLabels
Components
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created May 29, 2013 at 2:31 PM
Updated September 21, 2021 at 9:18 PM
When running tests via the surefire plugin, it has the capability to run tests in parallel.
Step 1: Update the top-level pom.xml to replace the deprecated forkMode configuration option with forkCount and reuseForks.
<forkMode>pertest</forkMode>
becomes:
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
Step 2: Adjust forkCount to be something greater than 1 (ie: 4, 1.5C, etc.)
Not all tests will run successfully in parallel as some have hard-coded socket properties. For example, the Mock SNMP Agent (tests/mock-snmp-agent) binds to port 1691 and so only one test for that project can be ran at a time.