【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
task testng(type: Test) { description "TestNG test in com/irise/testng" useTestNG(){ reports.html.destination = file("$buildDir/reports/testng") } }
用gradle testng运行,报错:
* What went wrong: Could not determine the dependencies of task ':app:testng'. > A base directory must be specified in the task or via a method argument!
配置Test也报错,Gradle DSL method not found: 'test()'。 test不是内置的task么,怎么找不到?
test { include '**/*Test.class' exclude '**/*IntegrationTest.class' }
app:processReleaseManifest
app:processReleaseResources
app:test - Run unit tests for all variants. [app:testDebugUnitTest, app:testReleaseUnitTest]
app:testDebugUnitTest - Run unit tests for the debug build. [app:compileDebugUnitTestSources, app:mockableAndroidJar]
app:assembleDebugUnitTest
app:testReleaseUnitTest - Run unit tests for the release build. [app:compileReleaseUnitTestSources, app:mockableAndroidJar]
app:assembleReleaseUnitTest
运行gradle tasks --all 有test,难道我理解错了?