Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Move test modules into integration_tests directory

Maximilian Roos1460d55352ca
diff --git a/tests/git_error_display.rs b/tests/integration_tests/git_error_display.rs
similarity index 100%
rename from tests/git_error_display.rs
rename to tests/integration_tests/git_error_display.rs
diff --git a/tests/integration_tests/mod.rs b/tests/integration_tests/mod.rs
index a8910aaf6..1edece6e5 100644
--- a/tests/integration_tests/mod.rs
+++ b/tests/integration_tests/mod.rs
@@ -4,6 +4,7 @@
// column_alignment merged into spacing_edge_cases
pub mod approval_pty;
+
pub mod approval_save;
pub mod approval_ui;
pub mod approvals;
@@ -21,6 +22,7 @@ pub mod default_branch;
pub mod directives;
pub mod e2e_shell;
pub mod e2e_shell_post_start;
+pub mod git_error_display;
pub mod help;
pub mod hook_show;
pub mod init;
@@ -30,6 +32,7 @@ pub mod list_column_alignment;
pub mod list_config;
pub mod list_progressive;
pub mod merge;
+pub mod output_system_guard;
pub mod post_start_commands;
pub mod push;
pub mod readme_sync;
diff --git a/tests/output_system_guard.rs b/tests/integration_tests/output_system_guard.rs
similarity index 100%
rename from tests/output_system_guard.rs
rename to tests/integration_tests/output_system_guard.rs
diff --git a/tests/snapshots/git_error_display__branch_already_exists.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__branch_already_exists.snap
similarity index 100%
rename from tests/snapshots/git_error_display__branch_already_exists.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__branch_already_exists.snap
diff --git a/tests/snapshots/git_error_display__cannot_remove_main_worktree.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__cannot_remove_main_worktree.snap
similarity index 100%
rename from tests/snapshots/git_error_display__cannot_remove_main_worktree.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__cannot_remove_main_worktree.snap
diff --git a/tests/snapshots/git_error_display__conflicting_changes.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__conflicting_changes.snap
similarity index 100%
rename from tests/snapshots/git_error_display__conflicting_changes.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__conflicting_changes.snap
diff --git a/tests/snapshots/git_error_display__detached_head.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__detached_head.snap
similarity index 100%
rename from tests/snapshots/git_error_display__detached_head.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__detached_head.snap
diff --git a/tests/snapshots/git_error_display__detached_head_no_action.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__detached_head_no_action.snap
similarity index 100%
rename from tests/snapshots/git_error_display__detached_head_no_action.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__detached_head_no_action.snap
diff --git a/tests/snapshots/git_error_display__hook_command_failed_with_name.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__hook_command_failed_with_name.snap
similarity index 100%
rename from tests/snapshots/git_error_display__hook_command_failed_with_name.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__hook_command_failed_with_name.snap
diff --git a/tests/snapshots/git_error_display__hook_command_failed_without_name.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__hook_command_failed_without_name.snap
similarity index 100%
rename from tests/snapshots/git_error_display__hook_command_failed_without_name.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__hook_command_failed_without_name.snap
diff --git a/tests/snapshots/git_error_display__invalid_reference.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__invalid_reference.snap
similarity index 100%
rename from tests/snapshots/git_error_display__invalid_reference.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__invalid_reference.snap
diff --git a/tests/snapshots/git_error_display__llm_command_failed.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__llm_command_failed.snap
similarity index 100%
rename from tests/snapshots/git_error_display__llm_command_failed.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__llm_command_failed.snap
diff --git a/tests/snapshots/git_error_display__merge_commits_found.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__merge_commits_found.snap
similarity index 100%
rename from tests/snapshots/git_error_display__merge_commits_found.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__merge_commits_found.snap
diff --git a/tests/snapshots/git_error_display__no_worktree_found.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__no_worktree_found.snap
similarity index 100%
rename from tests/snapshots/git_error_display__no_worktree_found.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__no_worktree_found.snap
diff --git a/tests/snapshots/git_error_display__not_fast_forward.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_fast_forward.snap
similarity index 100%
rename from tests/snapshots/git_error_display__not_fast_forward.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_fast_forward.snap
diff --git a/tests/snapshots/git_error_display__not_fast_forward_merge_context.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_fast_forward_merge_context.snap
similarity index 100%
rename from tests/snapshots/git_error_display__not_fast_forward_merge_context.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_fast_forward_merge_context.snap
diff --git a/tests/snapshots/git_error_display__not_interactive.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_interactive.snap
similarity index 100%
rename from tests/snapshots/git_error_display__not_interactive.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__not_interactive.snap
diff --git a/tests/snapshots/git_error_display__other.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__other.snap
similarity index 100%
rename from tests/snapshots/git_error_display__other.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__other.snap
diff --git a/tests/snapshots/git_error_display__parse_error.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__parse_error.snap
similarity index 100%
rename from tests/snapshots/git_error_display__parse_error.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__parse_error.snap
diff --git a/tests/snapshots/git_error_display__project_config_not_found.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__project_config_not_found.snap
similarity index 100%
rename from tests/snapshots/git_error_display__project_config_not_found.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__project_config_not_found.snap
diff --git a/tests/snapshots/git_error_display__push_failed.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__push_failed.snap
similarity index 100%
rename from tests/snapshots/git_error_display__push_failed.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__push_failed.snap
diff --git a/tests/snapshots/git_error_display__rebase_conflict.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__rebase_conflict.snap
similarity index 100%
rename from tests/snapshots/git_error_display__rebase_conflict.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__rebase_conflict.snap
diff --git a/tests/snapshots/git_error_display__remote_only_branch.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__remote_only_branch.snap
similarity index 100%
rename from tests/snapshots/git_error_display__remote_only_branch.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__remote_only_branch.snap
diff --git a/tests/snapshots/git_error_display__uncommitted_changes.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__uncommitted_changes.snap
similarity index 100%
rename from tests/snapshots/git_error_display__uncommitted_changes.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__uncommitted_changes.snap
diff --git a/tests/snapshots/git_error_display__uncommitted_changes_with_worktree.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__uncommitted_changes_with_worktree.snap
similarity index 100%
rename from tests/snapshots/git_error_display__uncommitted_changes_with_worktree.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__uncommitted_changes_with_worktree.snap
diff --git a/tests/snapshots/git_error_display__worktree_creation_failed.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_creation_failed.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_creation_failed.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_creation_failed.snap
diff --git a/tests/snapshots/git_error_display__worktree_missing.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_missing.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_missing.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_missing.snap
diff --git a/tests/snapshots/git_error_display__worktree_path_exists.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_exists.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_path_exists.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_exists.snap
diff --git a/tests/snapshots/git_error_display__worktree_path_mismatch.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_mismatch.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_path_mismatch.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_mismatch.snap
diff --git a/tests/snapshots/git_error_display__worktree_path_occupied.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_occupied.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_path_occupied.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_path_occupied.snap
diff --git a/tests/snapshots/git_error_display__worktree_removal_failed.snap b/tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_removal_failed.snap
similarity index 100%
rename from tests/snapshots/git_error_display__worktree_removal_failed.snap
rename to tests/integration_tests/snapshots/integration__integration_tests__git_error_display__worktree_removal_failed.snap