在使用 Sping 源码测试项目时,在自己的项目中添加的单元测试类,测试时报错:
Execution failed for task ':sxd-web:test'.
> No tests found for given includes: [***Test.class](include rules) [**/Abstract*.class, ***Tests.class", "**Abstract*.class", '**/*$*'])
reports.junitXml.setDestination(file("$buildDir/test-results"))
}
命名的单测试类必需是 “xxxTests.java”,这样才能测试。


 [**/Abstract*.cl No tests found for given includes: [***Test.class](include rules) [**/Abstract*.cl](http://www.mshxw.com/aiimages/31/424583.png)
