🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.mvnw smoke
  2. B.mvnw test -Dgroups=smoke
  3. C.mvnw test --only=smoke
  4. 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 →