<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
And I still get the following error on mvn test:
--- maven-surefire-plugin:2.22.2:test (default-test) @ <project-name> ---
[INFO] No tests to run.
What do I do wrong?
Is there any reason why you configure just a certain tests? By default the surefire plugin should access all classes in testRoot and sub directories.
You could also just link a specific file like
src/test/ArchTest.java
to see if it is the "include" in your configuration or something else. I am not sure that the wildecards are working as you expect them to work. See Maven <include> wildcard match on partial folder name . Based on this you might try out
<configuration>
<includes>
<include>/**/*Test.java</include>
</includes>
</configuration>