Skip to content

Support running KSP tests in parallel #359

Open
@ansman

Description

@ansman

This issue might actually be related to KSP itself, but in my project auto-dagger I run my tests concurrently using Junit 5. This works fine for tests that use a regular annotation processor but fails for KSP tests (you essentially get a bunch of errors during type resolution like org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException: Descriptor wasn't found for declaration CLASS).

To repro, comment out this line: https://github.com/ansman/auto-dagger/blob/main/compiler/src/test/kotlin/se/ansman/dagger/auto/compiler/KspTest.kt#L6
And then run the tests.

Again this issue might be with KSP and if so please just close this issue and I'll open an issue with KSP.

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