Complete the code to specify the Maven Surefire plugin version in the POM file.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>[1]</version>
</plugin>The version 3.0.0-M7 supports modern JUnit versions.
Complete the code to configure Maven Surefire plugin to include only tests matching the pattern.
<configuration>
<includes>
<include>[1]</include>
</includes>
</configuration>The pattern '**/*Test.java' tells Surefire to run all test classes ending with 'Test.java'.
Fix the error in the Maven Surefire plugin configuration to enable JUnit 5 platform.
<configuration> <[1]> <provider>org.junit.platform.surefire.provider.JUnitPlatformProvider</provider> </[1]> </configuration>
The correct tag is
Fill both blanks to configure Maven Surefire plugin to run tests with JUnit 5 and enable detailed reports.
<configuration> <[1]> <[2]>org.junit.platform.surefire.provider.JUnitPlatformProvider</[2]> </[1]> <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> </configuration>
The
Fill all three blanks to configure Maven Surefire plugin to skip tests and set a custom test failure ignore flag.
<configuration> <[1]>true</[1]> <[2]>false</[2]> <[3]>true</[3]> </configuration>