Assigned
Status Update
Comments
ac...@google.com <ac...@google.com>
hu...@google.com <hu...@google.com> #2
I tried adding screenshotTestImplementation(libs.androidx.window)
but it didn't fix it.
a....@gmail.com <a....@gmail.com> #3
This is likely a duplicate of libs.androidx.window
dependency to implementation
to see if it works?
hu...@google.com <hu...@google.com> #4
Hi Luke, IIRC, you have worked on test code coverage feature in Android Studio. Could you take a look at this issue? Thanks.
lu...@google.com <lu...@google.com> #5
a.turner7911@ Perhaps you are trying to run the intellij coverage tool? If so this is not supported.
Generating test coverage reports in AGP:
- Apply the Jacoco Plugin
apply plugin: 'jacoco'
- Enable unit test coverage in the DSL
android.buildTypes.debug.enableUnitTestCoverage true
, note testCoverageEnabled is no longer supported in 7.3+ - Run the task for generating the report
create<variant>CoverageReport
e.gcreateDebugUnitTestCoverageReport
- Open the report located in build/reports/coverage/...
a....@gmail.com <a....@gmail.com> #6
What do you mean the intellij tool? When I run my unit tests using the play
button in the gutter one of the popup options is run with coverage when I
do that the tests run then I get a pop-up saying: "Project is out of date.
Project clsss files are out of date. Would you like to recompile? The
refusal to do it will hide the coverage information." With the options to
hide coverage or recompile. If I press recompile it always leads back to
this pop up in the past I've been able to recompile and then cancel the
build and still generate my test report but now when I do that the test
report never generates but I do see the coverage menu with the percentages
of coverage.
I have jacoco plugin enabled as well as enableUnitTestCoverage
On Wed, Dec 7, 2022, 3:32 AM <buganizer-system@google.com> wrote:
button in the gutter one of the popup options is run with coverage when I
do that the tests run then I get a pop-up saying: "Project is out of date.
Project clsss files are out of date. Would you like to recompile? The
refusal to do it will hide the coverage information." With the options to
hide coverage or recompile. If I press recompile it always leads back to
this pop up in the past I've been able to recompile and then cancel the
build and still generate my test report but now when I do that the test
report never generates but I do see the coverage menu with the percentages
of coverage.
I have jacoco plugin enabled as well as enableUnitTestCoverage
On Wed, Dec 7, 2022, 3:32 AM <buganizer-system@google.com> wrote:
Description
I choose to save it in my downloads folder and check to open generated HTML in browser in the bottom bar I see something flash then it is gone and nothing is generated.
Build: AI-213.7172.25.2113.9014738, 202208312042,
AI-213.7172.25.2113.9014738, JRE 11.0.13+0-b1751.21-8125866x64 JetBrains s.r.o., OS Mac OS X(aarch64) v12.3, screens 3456.0x2234.0, 1920.0x1080.0, 1920.0x1080.0; Retina
AS: Dolphin | 2021.3.1
Kotlin plugin: 213-1.7.10-release-for-android-studio-AS6777.52
Android Gradle Plugin: 7.2.2
Gradle: 7.3.3
Gradle JDK: version 11.0.13
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please read