October 2017
Intermediate to advanced
350 pages
7h 29m
English
The regular inclusion/exclusion support of the Maven plugin can still be used to select which tests are going to be executed by maven-surefire-plugin. To that aim, we use the keywords includes and excludes to configure the test name pattern used to filter the execution by the plugin. Notice that for both inclusions and exclusions, regular expressions can be used to specify a pattern of the test filenames:
<configuration> <includes> <include>**/Test*.java</include> <include>**/*Test.java</include> <include>**/*TestCase.java</include> </includes></configuration><configuration> <excludes> <exclude>**/TestCircle.java</exclude> <exclude>**/TestSquare.java</exclude> </excludes></configuration>
Read now
Unlock full access