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
//! The three paths every `praxis-cli` integration test starts from: the binary
//! under test, the workspace root, and this crate's fixture tree.
//!
//! **Why they live here and not in `praxis-test-support`.**
//! `CARGO_BIN_EXE_praxis` is set by cargo only while compiling *this* package's
//! integration tests, so `bin_path` has to expand the literal inside one of
//! them; a helper crate would see no such variable. The other two follow it
//! rather than being split across two homes.
// Every test binary compiles this whole module and calls part of it, so the
// items a given file does not use are dead *there* and nowhere else — and
// `just ci` runs clippy with `-D warnings`.
use PathBuf;
/// The compiled `praxis` binary.
///
/// `CARGO_BIN_EXE_praxis` is set by cargo when running integration tests and
/// points at the compiled `praxis` binary.
/// The workspace root, from this crate's manifest directory.
/// A path under this crate's `tests/fixtures`.