【发布时间】:2015-08-06 14:19:28
【问题描述】:
我已经添加了这个 gradle 任务
然后我得到这个错误:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/eladb/WorkspaceQa/java/UsersServer/build.gradle' line: 98
* What went wrong:
A problem occurred evaluating root project 'UsersServer'.
> No signature of method: org.gradle.api.tasks.testing.junit.JUnitOptions.includeGroups() is applicable for argument types: (java.lang.String) values: [NoDbTests]
我的语法有什么问题?
我看过这个教程:
test {
useJUnit {
includeCategories 'linqmap.users.interfaces.NoDbTests'
// excludeCategories 'org.gradle.junit.CategoryB'
}
}
【问题讨论】:
-
请包含正在运行的脚本中的代码片段。看起来您发布的脚本与错误内容无关。