经过一些修改以进行测试配置
test {
scanForTestClasses = false
include '**/*Test.class'
include 'lt/inventi/apollo/scenarios/**'
}
我的测试开始因错误而失败,java.lang.Exception: Test class should have exactly one public constructor
所以我的解决方法是这样的
test {
scanForTestClasses = false
include '**/*Test.class'
include 'lt/inventi/apollo/scenarios/**'
exclude '**/*$*' //fixed
}
这是正确的方法吗?