-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to load coverage data from file #138
Comments
Duplicates #7 |
Issue #7 looks to be a separate, still code coverage related, issue. In their case, it's a My case, the tests are completing, but the report file is being saved/exported incorrectly |
At the moment, the Kover and |
I'm using |
The specific version from the agent is not so important, because in any case, double instrumentation will cause an error. You can disable Kover instrumentation when running tests from Android Studio. An example of how you can do this:
|
Duplicates #7 |
Why was this issue closed ? I still face this issue on Android studio |
Late update on this issue, but here is my quick fix. kover {
if (project.hasProperty("useIntellij"))
engine = kotlinx.kover.api.DefaultIntellijEngine.INSTANCE
else
engine = kotlinx.kover.api.DefaultJacocoEngine.INSTANCE
} Usage as ./gradlew -PuseIntellij KoverHtmlReport Without including the flag, such as with the gutter action I tried to edit the configuration during a |
When running the unit tests, they pass. But when running the same tests with code coverage (gutter icon or
Run '...' with Coverage
), I get the following log errorRunning with stacktrace gives
Manual command (with the same error as above)
[INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'Gradle Test Executor 4'. Working directory: /Users/zyphuris55/REPOS/Own/SplashKoverDemo/app Command: /Applications/Android\ Studio.app/Contents/jre/Contents/Home/bin/java -Dcoverage.ignore.private.constructor.util.class=true -Didea.coverage.log.level=error -Didea.new.sampling.coverage=true -Didea.new.tracing.coverage=true -Djava.awt.headless=true -Dorg.gradle.internal.worker.tmpdir=/Users/zyphuris55/REPOS/Own/SplashKoverDemo/app/build/tmp/testDebugUnitTest/work -Dorg.gradle.native=false -javaagent:/Users/zyphuris55/Library/Caches/Google/AndroidStudio2021.1/testAgent/intellij-coverage-agent-1.0.579.jar=/private/var/folders/4_/syqrg0y51pnfcnj1f_dz3774jb7tz1/T/coverage3args -javaagent:/Users/zyphuris55/.gradle/caches/modules-2/files-2.1/org.jetbrains.intellij.deps/intellij-coverage-agent/1.0.656/1c818e0932529164115ce6844697f9e97cc1d763/intellij-coverage-agent-1.0.656.jar=/Users/zyphuris55/REPOS/Own/SplashKoverDemo/app/build/tmp/testDebugUnitTest/intellijagent.args @/Users/zyphuris55/.gradle/.tmp/gradle-worker-classpath5508516156963827020txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 4'
System
Reference Project: https://github.com/Zyphuris55/SplashKoverDemo
The text was updated successfully, but these errors were encountered: