Question: How do you run a single unit test in Maven?
- Maven runs only a single unit test by default.
- Use the -Dtest= flag and pass in the name of the test.
- Use a plugin that can specify the test you want to run.
- It is not possible to do this.
Answer: The correct answer of the above question is Option B:Use the -Dtest= flag and pass in the name of the test.