Skip to content

docs(tasks): the command-line tests run without the command line - #3

Merged
adammharris merged 1 commit into
masterfrom
agent/backlog-cli-tests-run-without-the-cli
Oct 29, 2026
Merged

adammharris merged 1 commit into
masterfrom
agent/backlog-cli-tests-run-without-the-cli

Conversation

@adammharris

Copy link
Copy Markdown
Member

What

Adds docs/tasks/cli-tests-run-without-the-cli.md and lists it in the tasks index. Docs only: no code or CI change.

Why

cargo test --no-default-features fails at 63d273c. All 33 tests in tests/cli.rs panic with the binary this test crate builds: ... NotFound. The fig-schema binary has required-features = ["cli"], but the auto-discovered tests/cli.rs target does not, so without cli it still compiles and runs a binary that was never built. The library itself is fine in that configuration: its 118 unit tests, 15 non_exhaustive tests and 18 doctests pass, and cargo clippy --no-default-features --all-targets -- -D warnings is clean.

The library-only build is the one every consumer uses. prov, flower and twig-export all depend on fig-schema = { version = "0.5", default-features = false }. CI only checks default features, so nothing tests that build, and its test command cannot pass today.

The task's done state is to declare tests/cli.rs as a [[test]] with required-features = ["cli"]. Whether CI should also get a library-only job, like historica-minisign's verify-only, is left as a separate decision.

How it was found and checked

  • Found while running scope repos' checks in configurations their CI doesn't cover, on hbox (rustc 1.99.1).
  • Reproduced in a fresh clone of master with cargo test --no-default-features --no-fail-fast. The counts in the task come from that run.
  • Tried the fix named under "Done when" in the scratch clone and reverted it. With the [[test]] entry, cargo test --no-default-features passes (118 + 15 + 18) and cargo test --test cli with defaults still runs and passes all 33.
  • ship ci in this branch's worktree passed all 5 jobs (fmt, clippy, test, doc, msrv).
  • fig-schema has no prov config of its own, so the task is written by hand in the shape of the existing task files.

@adammharris
adammharris merged commit fb33825 into master Oct 29, 2026
6 checks passed
@adammharris
adammharris deleted the agent/backlog-cli-tests-run-without-the-cli branch October 30, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant