Java Test Automation / Quiz

Surefire at Full Throttle: Forks, Threads, Reruns

forkCount vs parallel, 1C multipliers, reuseForks, and which provider rerunFailingTestsCount actually supports. The plugin's power controls.

Difficulty
Hard
Format
Quiz
Points
200
Estimate
11 min

// MISSION BRIEF

Your Mission

Surefire has two different axes of parallelism (JVM forks and in-JVM threads), a multiplier syntax, and a flaky-test rerun feature with a provider asterisk everyone discovers too late.

This quiz is the control panel tour: what each knob does, which knobs conflict with testng.xml, and how JUnit 5 parallelism is actually switched on.

// FIRST CONTACT

Battle teaser

forkCount=4 vs parallel=methods + threadCount=4:

  1. AThey are synonyms for the same thread pool
  2. BforkCount is threads, parallel is processes
  3. CforkCount only applies to integration tests
  4. DforkCount launches separate JVM processes (process isolation); parallel/threadCount runs threads inside one JVM (shared memory, faster, less isolated)
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

javamavensurefireparallel