jesseduffield.lazygit/pkg/integration/tests
Stefan Haller 3ac9003298 Add tests
I can't do my usual "add the tests first, with EXPECTED/ACTUAL sections that
document the bug" method here, because the tests would hang without the bug
being fixed.

We need two different tests here: one where a cherry-picked commit simply
becomes empty "by itself", because the change is already present on the
destination branch (this was only a problem with git versions older than 2.45),
and the other where the cherry-pick stops with conflicts, and the user resolves
them such that no changes are left, and then continues the cherry-pick. This
would still fail even with git 2.45 or later. The fix is the same for both cases
though.

The tests show that the selection behavior after skipping an empty cherry-picked
commit is not ideal, but since that's only a minor cosmetic problem we don't
bother fixing it here.
2025-10-14 12:27:32 +02:00
..
bisect Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
branch Draw divergence from base branch right-aligned in branches view 2025-07-30 14:23:31 +02:00
cherry_pick Add tests 2025-10-14 12:27:32 +02:00
commit Fix dropping submodule changes from a commit 2025-10-10 12:55:58 +02:00
config Remove obsolete git version restrictions 2025-07-09 12:18:57 +02:00
conflicts Add merge options menu 2025-10-09 08:45:58 +02:00
custom_commands Fix more unstable tests 2025-07-10 08:59:01 +02:00
demo Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
diff Allow changing diff context size and rename threshold when main view is focused 2025-04-23 08:38:46 +02:00
file Add user config gui.addRootItemInFileTree 2025-05-24 18:17:25 +02:00
filter_and_search Allow filtering for keybindings by prepending filter string with '@' 2025-08-14 15:02:48 +02:00
filter_by_author Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
filter_by_path When entering a commit in path filtering mode, select the filtered path 2025-10-09 09:58:15 +02:00
interactive_rebase Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
misc Add "CopyToClipboard" command to ConfirmationController 2025-08-15 17:17:06 +02:00
patch_building Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
reflog Un-deprecate UserConfig.Git.Log.Order and ShowGraph 2025-07-09 13:15:03 +02:00
shared Add merge options menu 2025-10-09 08:45:58 +02:00
shell_commands Rename "Custom Command" to "Shell Command" 2024-08-17 10:56:03 +02:00
staging Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
stash Fix dropping a range of stashes in filtered mode 2025-08-25 18:41:06 +02:00
status Draw divergence from base branch right-aligned in branches view 2025-07-30 14:23:31 +02:00
submodule Fix view selection running out of sync with list selection when view isn't focused 2025-04-20 16:06:15 +02:00
sync Don't auto-forward branches that are checked out by another worktree 2025-08-20 10:43:19 +02:00
tag Add tests for tag information rendering 2025-07-28 10:53:51 +02:00
ui Avoid showing <esc> in options map when it doesn't do anything 2025-08-14 17:59:38 +02:00
undo Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
worktree Offer to force-delete a worktree if it contains submodules 2025-10-14 12:19:49 +02:00
test_list.go Add tests 2025-10-14 12:27:32 +02:00
test_list_generator.go Fix typos 2025-01-03 10:50:36 +11:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00