mirror of
https://github.com/max-sixty/worktrunk.git
synced 2026-09-14 20:00:38 +08:00
1b35950a9c
This reduces duplicated and false-confidence integration coverage while preserving the suite's semantic and user-facing contracts. ## What changed - Replaces three overlapping list-layout suites with two representative CLI integrations, leaving exhaustive geometry at the direct layout layer. - Groups Git error render variants into labeled family snapshots and removes command-by-shell wrapper cross-products while retaining shell-specific conformance and regression cases. - Updates test-authoring guidance around boundary choice, minimal contrasts, and PTY use, and runs local and CI coverage through Nextest isolation. ## Results - Test catalog: 4,642 to 4,562 - Snapshots: 1,193 to 1,131 - Warm all-feature runtime: 84.70s to 78.17-80.35s - Full coverage: 97.32% of lines ## Testing - `cargo run -- hook pre-merge --yes` - `cargo llvm-cov nextest --features shell-integration-tests --summary-only` > _This was written by Claude Code on behalf of max_.
69 lines
1.7 KiB
Rust
69 lines
1.7 KiB
Rust
// Note: Some tests require Unix-specific features (PTY, shell integration).
|
|
// Those are gated at the individual test or file level with #[cfg(unix)],
|
|
// #[cfg_attr(windows, ignore)], or #[cfg(all(unix, feature = "shell-integration-tests"))].
|
|
//
|
|
// Windows path differences are handled by snapshot filters in setup_snapshot_settings().
|
|
|
|
pub mod approval_pty;
|
|
|
|
pub mod approval_save;
|
|
pub mod approval_ui;
|
|
pub mod approvals;
|
|
pub mod bare_repository;
|
|
pub mod cache_sharing;
|
|
pub mod ci_status;
|
|
pub mod completion;
|
|
pub mod completion_validation;
|
|
pub mod config_init;
|
|
pub mod config_show;
|
|
pub mod config_show_theme;
|
|
pub mod config_state;
|
|
pub mod config_update_pty;
|
|
pub mod configure_shell;
|
|
pub mod custom;
|
|
pub mod default_branch;
|
|
pub mod diagnostic;
|
|
pub mod directives;
|
|
pub mod doc_templates;
|
|
pub mod e2e_shell;
|
|
pub mod e2e_shell_post_start;
|
|
pub mod eval;
|
|
pub mod for_each;
|
|
pub mod git_error_display;
|
|
pub mod help;
|
|
pub mod hook_show;
|
|
pub mod init;
|
|
pub mod list;
|
|
pub mod list_config;
|
|
pub mod list_layout;
|
|
pub mod list_progressive;
|
|
pub mod merge;
|
|
pub mod nushell_default_config_dir;
|
|
pub mod output_system_guard;
|
|
pub mod packaged_assets;
|
|
pub mod post_start_commands;
|
|
pub mod push;
|
|
pub mod readme_sync;
|
|
pub mod remove;
|
|
pub mod repository;
|
|
pub mod security;
|
|
pub mod select_config;
|
|
pub mod shell_integration_prompt;
|
|
pub mod shell_integration_windows;
|
|
pub mod shell_powershell;
|
|
pub mod shell_wrapper;
|
|
pub mod snapshot_formatting_guard;
|
|
pub mod statusline;
|
|
pub mod step_alias;
|
|
pub mod step_copy_ignored;
|
|
pub mod step_diff;
|
|
pub mod step_promote;
|
|
pub mod step_prune;
|
|
pub mod step_relocate;
|
|
pub mod step_tether;
|
|
pub mod switch;
|
|
pub mod switch_picker;
|
|
pub mod switch_picker_dry_run;
|
|
pub mod user_hooks;
|
|
pub mod version_build;
|