我正在使用gradle项目
Testing started at 9:18 PM ...
9:18:08 PM: Executing tasks ':cleanTest :test --tests "abc.lau" --scan'...
> Task :cleanTest
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava
> Task :processTestResources NO-SOURCE
> Task :testClasses
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> No tests found for given includes: [abc.lau](filter.includeTestsMatching)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
3 actionable tasks: 3 executed
答案 0 :(得分:0)
您是否已在 build.gradle 中明确指定使用testng?
test {
useTestNG()
}