← Quiz: TestNG: all 10 questions
Quiz: TestNG · Question 4 of 10
How do you run only the smoke group from Maven?
How do you run only the smoke group from Maven?
- A.mvnw smoke
- B.mvnw test -Dgroups=smoke
- C.mvnw test --only=smoke
- D.Delete the other tests
Answer & explanation
Correct answer: mvnw test -Dgroups=smoke
Surefire passes the groups filter to TestNG.
Can you get the rest right without peeking?
Take the timed Quiz: TestNG quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →