0
我有单元测试和集成测试在我的项目,该项目是由@Category分开,使他们能够在顺序执行:测试报告被覆盖
test {
useJUnit {
includeCategories '....UnitTest'
}
}
task itTest(type: Test, dependsOn: tasks.test) {
useJUnit {
includeCategories '....IntegrationTest'
}
}
运行itTest第一执行单元测试任务和整合根据需要进行第二次测试,但单元测试报告未包含在摘要中。 This建议有这个问题的解决方案,但我不知道如何将该片段包含到我的build.gradle。感谢您的任何帮助!