返回 CodeWhale
mod.rs
1 //! Minimal PTY/frame-capture harness for TUI integration tests.
2 //!
3 //! Spawns the `codewhale-tui` binary in a real pseudo-terminal, sends scripted
4 //! keystrokes / paste, and parses the ANSI output stream into terminal
5 //! frames so tests can assert on visible text and on the filesystem.
6 //!
7 //! Tests opt in via:
8 //! ```ignore
9 //! #[path = "support/qa_harness/mod.rs"]
10 //! mod qa_harness;
11 //! use qa_harness::harness::Harness;
12 //! use qa_harness::keys;
13 //! ```
14 //!
15 //! Design notes live in `README.md` next to this module.
16
17 // Each test binary `#[path]`-includes this harness and uses a different
18 // subset of it, so a re-export unused by one binary (e.g. `Color`) is
19 // expected — same reason as `dead_code`.
20 #![allow(dead_code, unused_imports)]
21
22 pub mod frame;
23 pub mod harness;
24 pub mod keys;
25 pub mod modes;
26 pub mod pty;
27 pub mod view_log;
28
29 pub use frame::{Color, Frame};
30 pub use keys::paste;
31 pub use modes::TerminalModeLedger;
32 pub use pty::PtySession;
33
33 lines RUST