在我的Android应用程序中,我有几个测试类。如果我运行以下命令./gradlew connectedAndroidTest
,它将运行Android测试文件夹中的所有测试用例,并为所有测试类生成测试报告,但我需要测试一个特定的测试类并为该测试类生成报告,我尝试使用以下命令:
./gradlew test --tests com.login.user.UserLoginTest
上述命令会抛出以下异常
FAILURE: Build failed with an exception.
* What went wrong:
Problem configuring task :app:test from command line.
> Unknown command-line option '--tests'.
* Try:
Run gradlew help --task :app:test to get task usage details. 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
My app gradle version is 3.3