未找到 Android Studio 测试报告/结果

Abd*_*tou 5 android-studio android-gradle-plugin android-studio-2.3

我按照这里的说明操作:https : //developer.android.com/studio/test/index.html。我将此块添加到 app-module gradle 文件中的 Android 块中:

testOptions {
// Changes the directory where Gradle saves test reports. By default, Gradle saves test reports
// in the path_to_your_project/module_name/build/outputs/reports/ directory.
// '$rootDir' sets the path relative to the root directory of the current project.
reportDir "$rootDir/test-reports"
// Changes the directory where Gradle saves test results. By default, Gradle saves test results
// in the path_to_your_project/module_name/build/outputs/test-results/ directory.
// '$rootDir' sets the path relative to the root directory of the current project.
resultsDir "$rootDir/test-results"
Run Code Online (Sandbox Code Playgroud)

}

然而,我在我的项目文件夹中找不到任何测试结果/报告(我搜索了整个文件夹,一无所获。

我正在运行 Android 测试(不是单元测试)。文档说这个块适用于所有类型的测试,所以......为什么它不起作用?