- 仍是一个测试程序(tests/ui/main.rs,cargo test --test ui),每个文件单独成测试程序会再链接一遍 GPUI - 按功能分 11 个模块:host_dialog、host_tree、connection、terminal、workspace、settings、 sftp、transfer、forward、credential、update - 两个以上模块共用的夹具和假实现放进 support/:mod.rs 是公共的 use、种子 id 和通用助手, 其余按终端、SFTP、端口转发、测试连接、凭据分文件;只有一个模块用的留在那个模块里 - 纯搬移,测试逻辑不变:147 个测试名称与搬移前一致,全部通过 - CLAUDE.md 写明模块划分和新测试该放哪里,AGENTS.md、README 改路径
21 lines
524 B
Rust
21 lines
524 B
Rust
//! UI integration tests: the production `Workspace` rendered in a headless
|
|
//! window, driven through real pointer and keyboard events.
|
|
//!
|
|
//! One test binary, one module per feature: every file directly under
|
|
//! `tests/` would be a binary of its own, linking the whole GPUI stack
|
|
//! again. `support` holds the fixtures and fakes the modules share.
|
|
|
|
mod support;
|
|
|
|
mod connection;
|
|
mod credential;
|
|
mod forward;
|
|
mod host_dialog;
|
|
mod host_tree;
|
|
mod settings;
|
|
mod sftp;
|
|
mod terminal;
|
|
mod transfer;
|
|
mod update;
|
|
mod workspace;
|