1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! T141 — `cargo doc --no-deps` must succeed under both feature configurations,
//! which is the cross-check that `#![deny(missing_docs)]` at the crate root
//! (per FR-090) is being honored without any silent regression in
//! documentation coverage.
//!
//! This test shells out to `cargo doc --no-deps` twice:
//!
//! 1. `--no-default-features` — exercises the pure library surface (no CLI
//! modules in scope). With `deny(missing_docs)` active, an undocumented
//! public item would fail `cargo doc` here.
//! 2. `--all-features` — exercises the CLI-feature gated modules
//! (`cli`, `daemonizer`, `pidfile`, `logging`).
//!
//! Closes SC-010 (every public type carries a rustdoc + at least one doctest;
//! `cargo doc` is the proof-of-coverage).
//!
//! References: spec FR-090, SC-010; tasks.md T141.
use env;
use Command;
/// Locate the `cargo` executable. Honors the `$CARGO` env var that
/// `cargo test` sets, otherwise falls back to PATH lookup.
/// Run `cargo doc --no-deps <extra>` from the manifest dir and assert it
/// exits 0. On failure, the captured stdout + stderr is dumped into the
/// test failure message so the regression is visible in CI logs.