Skip to content

No executable tests were found during the mutation test with android.app.* import #148

@icelandld815

Description

@icelandld815

Dear Author,

When I tried to execute the mutation test on my Android application, below warning displayed:

7:57:20 PM PIT >> INFO : MINION : 7:57:20 PM PIT >> FINE : Expecting 259 tests classes from parent
7:57:20 PM PIT >> INFO : MINION : 7:57:20 PM PIT >> FINE : Tests classes received
7:57:20 PM PIT >> INFO : MINION : 7:57:20 PM PIT >> INFO : Checking environment
7:57:21 PM PIT >> INFO : MINION : 7:57:21 PM PIT >> INFO : Found  0 tests
**7:57:21 PM PIT >> INFO : MINION : 7:57:21 PM PIT >> WARNING : No executable tests were found after examining the 259 test classes supplied. This may indicate an issue with the classpath or a missing test plugin (e.g for JUnit 5).**
7:57:21 PM PIT >> INFO : MINION : 7:57:21 PM PIT >> INFO : 0 tests discovered
7:57:21 PM PIT >> INFO : MINION : 7:57:21 PM PIT >> INFO : 0All tests were executed as part of discovery.
7:57:21 PM PIT >> FINE : Coverage generator Minion exited ok

And i use "pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.18" and config the pitest as below:

pitest{
     targetClasses=['weather.models.helper.*']
    pitestVersion = '1.9.4'
    mutationThreshold = 80
    outputFormats = ['HTML']
    excludeMockableAndroidJar = true
    avoidCallsTo = ['kotlin.jvm.internal']
    verbose = true
}

and here is my test config:

   testImplementation "io.mockk:mockk:$mockk_version"
   testImplementation "junit:junit:4.13.2"
   testImplementation "androidx.arch.core:core-testing:2.2.0"
   testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinx_coroutines_test_version"**

Could you please kindly help to give the insights?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions