Skip to content

Resolve cargo-qualified test task aliases #48

@kjanat

Description

@kjanat

Problem

In a mixed Node/Rust project, runner lists Cargo aliases but the natural qualified form does not resolve:

run cargo:test
Error: task "cargo:test" not found. Run `runner list` to see available tasks.

Meanwhile unqualified test dispatches to Bun's implicit test fallback, even though Cargo aliases exist:

run test
→ bun test
bun test v1.3.14
No tests found!

runner output shows Cargo tasks/aliases are detected:

Package Managers    bun, cargo
Task Runners        just

cargo           b, bb, ..., t

Expected

A user should have an obvious way to run Cargo's test task when multiple ecosystems are detected.

Possible acceptable behavior:

  • runner cargo:test resolves to Cargo's test task when Cargo exposes that built-in/alias.
  • Or runner cargo:t resolves when t = test is listed.
  • Or the error suggests the actual accepted spelling for Cargo-qualified tasks.

Actual

cargo:test is rejected as missing, and test routes to Bun's implicit fallback.

Why it matters

This makes Rust test execution hard to discover in mixed Node/Rust repos. The dashboard says Cargo is present, but the intuitive qualified task spelling fails. Users fall into Bun's no-tests path instead.

Notes

Observed on runner 0.12.1 in this repo.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions