What is the format of the Maven Surefire plug-in <include> statement?

I am trying to start Maven Surefire with an include statement:

<include>**/[AR]*SeleniumTest.java</include> <include>**/[AR]**SeleniumTest.java</include> <include>**/[AR].*SeleniumTest.java</include> 

But he does not seem to support any of these designations. What is the syntax of this expression? (The link to the documentation will be highly appreciated)

+4
source share
2 answers

The Maven Surefire plugin follows the same semantics for customization and inclusion as Maven FileSets.

You can find some details on how this works through Maven: Final Guide (Section 12.7) :

The includes section uses a list of included elements containing path templates. These patterns can contain wildcards, such as “ ** ”, which matches one or more directories, or “ * ”, which matches part of the file name, and “ ? ”, Which matches one character in the file name

+6
source

The patterns used by maven include tags followed by the institution's Ant Pattern .

The [AR] notation is not supported in your example, but you can use a combination of inclusions and exceptions to narrow down the set of tests that run.

+2
source

All Articles