Kotlin / kotlinx-kover

Apache License 2.0
1.27k stars 47 forks source link

Android JUnit tests are skipped #518

Closed pdb-stripe closed 2 months ago

pdb-stripe commented 5 months ago

I am having trouble getting android junit tests to run on a multi-module project. The project looks something like this:

rootProject
 |---directory1
 |-----app1
 |-----lib1
 |---directory2
 |-----app2
 |-----lib2
 |---directory3
 |-----javalib

When I configure the plugin, running koverXmlReportDebug / koverXmlReport (running both currently) does not cause any junit tests to execute on Android modules (in src/test). It does execute the pure-java module however.

Is this a bug or a configuration error? How can I get this working? Do I need to both use androidReports and mergeReports?

shanshin commented 5 months ago

Hi, could you show me how Kover is configured? For which module (project) are you calling the report generation?

shanshin commented 3 months ago

Hi, please read this comment with recommendations for creating a merged report for Android + JVM projects.

If the configuration still fails, then reopen the issue and link the reproducer of your problem

shanshin commented 2 months ago

Closed as answered. Feel free to create new issue if you have any additional questions.