Skip to content

Phase 5: Affected tests discovery — auto-identify test files impacted by changes #460

Closed

Description

@ajianaz

Auto-identify test files that need to run based on code graph analysis. Map changed symbols to test files via naming convention + tree-sitter test edges. Effort: 2-3 days.

Activity

  1. added
    enhancementNew feature or request
    scope:code-intelCode intelligence — indexing, graph, impact analysis
    phase-3Phase 3: Architecture
    and removed
    phase-3Phase 3: Architecture
    on Aug 3, 2026
  2. ajianaz commented on Aug 3, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in PR #461 (merged to develop).

    What was delivered:

    • Affected tests discovery in build_brain_context() (review.rs) — walks impact graph, collects files containing 'test' or 'spec'
    • Affected tests discovery in build_scan_context() — same logic for scan mode
    • MCP tool cora.find_affected_tests — takes file list, returns affected test files via 2 strategies:
      1. Call graph traversal: find callers in test files
      2. Naming convention: batch LIKE query for test/spec file patterns

    Both strategies combined and deduplicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions