arturdm / arturdm/jacoco-android-gradle-plugin

Drops with Moxy library

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
565
Forks
107
PR merge metrics
No merged PRs in 30d

Description

I've added MVP implementation by Moxy library. Task `:sample-app:jacocoTestFreeDebugUnitTestReport` drops:

`Caused by: java.io.FileNotFoundException: /Users/tse/jd/tmp/example-android/sample-app/build/intermediates/classes/free/debug/com/dicedmelon/example/android/MainActivity$PresentersBinder$presenterBinder.class (No such file or directory)
at org.apache.tools.ant.types.resources.FileResource.getInputStream(FileResource.java:217)
at org.jacoco.ant.ReportTask.createBundle(ReportTask.java:569)
at org.jacoco.ant.ReportTask.createReport(ReportTask.java:542)
at org.jacoco.ant.ReportTask.execute(ReportTask.java:495)
... 83 more`

I can find the following classes:

`maaaacy:example-android $ find . | grep presenterBinder
./sample-app/build/intermediates/classes/free/debug/com/dicedmelon/example/android/MainActivity$$PresentersBinder$presenterBinder.class
./sample-app/build/intermediates/transforms/jacoco/free/debug/folders/1/1/main/com/dicedmelon/example/android/MainActivity$$PresentersBinder$presenterBinder.class
maaaacy:example-android $`

There is a difference in `$$` in the class name.

The project: https://github.com/tseglevskiy/example-android

Is it a bug?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce :sample-app:jacocoTestFreeDebugUnitTestReport and compare the missing path under build/intermediates/classes/free/debug with the generated $$PresentersBinder$presenterBinder.class shown by find. Trace how the JaCoCo report task resolves generated class names. Done means the report completes and includes the Moxy-generated class without a FileNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, groovy
Domain
build-system, mobile, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.