Skip to content

Rust adapter: generate cargo test commands for selected crates #60

Closed

Description

@adityankale190895

Part of the Rust (Cargo) adapter: #62.

Turn a selection of Rust crates and integration tests into a runnable command in planSelectiveTestCommands (src/planner/test-command.ts), next to the existing Go and Maven cases.

Scope

  • Produce cargo test -p <crate> -p <crate> ... for selected crates.
  • When only some integration test files of a crate are selected, add --test <name> for each one.
  • Refuse (keep the plan advisory) when CI runs tests through cargo nextest, cargo make, just or a script DiffCI doesn't understand, or passes --features/--all-features that DiffCI can't reproduce.

Done when

  • Tests cover a single crate, several crates, selected integration tests, and one refusal case.

Safety rule: when the adapter is unsure, it adds a blockers entry so DiffCI runs the full suite. An empty graph must never look like "nothing affected".


New to DiffCI? Read the adapter guide and CONTRIBUTING.md. Sign off commits with git commit -s. Comment here to claim it, and ask questions on the issue at any point.

Activity

  1. added
    enhancement
    good first issue
    on Oct 29, 2026
  2. FredApps commented on Nov 10, 2026

    @FredApps
    Contributor

    Taking this as the command milestone of #62, after the #58/#59 foundation. Commands preserve crate unit tests and doctests, use explicit integration-target names, and remain advisory when invocation or feature context cannot be reproduced.

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

    adapterenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions