Java Test Automation / Quiz
mvn test: What Actually Runs
Phases, plugins, and skip flags. What a single mvn command really executes, and the difference between skipping runs and skipping compiles.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 8 min
// MISSION BRIEF
Your Mission
Maven is not a task runner, it is a lifecycle: an ordered ladder of phases where invoking one phase runs everything before it. Testers live in this ladder daily (mvn test, mvn verify, -DskipTests), and misreading it is how integration tests silently stop running.
This quiz nails the default lifecycle around testing: which phases exist, what mvn test includes, and what the two skip flags actually skip.
// FIRST CONTACT
Battle teaser
Which of these orderings of default-lifecycle phases is correct?
- Atest, compile, package, verify, validate, deploy, install
- Bcompile, validate, package, test, install, verify, deploy
- Cvalidate, test, compile, verify, package, deploy, install
- Dvalidate, compile, test, package, verify, install, deploy
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
javamavenlifecycle