Hello, I am new to gradle and I am migrating from maven to gradle.
Currently, I am trying to achive Maven Surefire plugin behavior in gradle and I have wrote next code:
subprojects{
test{
include "**/Test*.java"
include "**/*Test.java"
include "**/*Tests.java"
include "**/*TestCase.java"
}
}
Unfotunatly, it does not work as I expected and just excludes ALL tests from my project.
I think this is because the include/exclude applies to classes, not to sources.
Note that the Test task is able to detect JUnit tests automatically. Unless you want to restrict tests executed by a task, you do not need to worry with exclude/include configuration.