Skip to content

Found 0 tests in Kotlin project #53

@xgouchet

Description

@xgouchet

I'm trying to run PITest with the JUnit 5 plugin in an Android/Kotlin project.
I'm applying the JUnit 5 project using the recommended approach

junit5PluginVersion = '0.12'

But when I run PITest, the following outputs is given. It does find my 887 test classes, and can generate mutation, but somehow it doesn't recognizes the tests from my Kotlin classes. Is there a way to make the plugin more verbose as to whay it doesn't find my @Test annotated methods ?

3:48:27 PM PIT >> INFO : MINION : 3:48:27 PM PIT >> FINE : Expecting 887 tests classes from parent
3:48:27 PM PIT >> INFO : MINION : 3:48:27 PM PIT >> FINE : Tests classes received
3:48:27 PM PIT >> INFO : MINION : 3:48:27 PM PIT >> INFO : Checking environment
3:48:29 PM PIT >> INFO : MINION : 3:48:29 PM PIT >> INFO : Found  0 tests
3:48:29 PM PIT >> INFO : MINION : 3:48:29 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0
3:48:29 PM PIT >> INFO : MINION : 3:48:29 PM PIT >> INFO : 0 tests received
3:48:29 PM PIT >> INFO : MINION : 3:48:29 PM PIT >> FINE : Running 0 units

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions