Skip to content

TESTS_FILE edges are never created for JVM (Kotlin/JUnit) tests #1556

Description

@PsyTech-Rob

Environment: v0.10.2, Windows 11, --mode full. Kotlin (JUnit5/Testcontainers) + TypeScript (vitest) monorepo.

Symptom

TESTS_FILE edges are created only for the TypeScript side. Measured on a full index:

  • Files matching .*(Test|IT)\.kt or .*\.test\.tsx?: 283
  • TESTS_FILE edges: 92 — all of them .test.tsx (66) / .test.ts (26)
  • JVM tests linked: 0, including trivially-conventional pairs like AgendarUseCaseTest.ktAgendarUseCase.kt (same package, sibling src/test/kotlin source set) and JooqCompromissoRepositoryIT.ktJooqCompromissoRepository.kt.

Impact

Any "which tests cover this class?" query over the graph silently answers "none" for the whole JVM half of a polyglot repo. We now instruct agents to fall back to naming convention + OVERRIDE edges of test fakes for Kotlin, but the edge type advertises coverage it doesn't have.

Suggestion

Apply the same filename/convention heuristic used for *.test.ts(x) to JVM conventions (XTest/XIT, src/test/{kotlin,java} mirroring src/main/...), or document TESTS_FILE as TS-only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.windowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions