stk
e357c00d4d
Add an integration test showing a problem with autosquash during normal rebase
...
For users who have the rebase.autoSquash git config set to true, any regular
rebase will squash fixups in addition to rebasing. Not good -- we'll fix that in
the next commit.
2023-02-09 17:35:20 +01:00
Jesse Duffield
c713d19383
Merge pull request #2417 from stefanhaller/make_integration_tests_more_robust
2023-02-09 21:55:30 +11:00
stk
b243f30f48
Disable ~/.gitconfig when running integration tests
...
A global ~/.gitconfig file can have influence on how integration tests behave;
in my case, I had the option "merge.conflictStyle" set to "diff3", which made
the integration test "cherry_pick_conflict" fail because the diff was different
from what the test expected.
Make this more robust by telling git to ignore the global config file when
running tests.
2023-02-07 17:26:45 +01:00
stk
e57843d947
Add integration test for ignoring whitespace in diff
2023-02-07 13:33:10 +01:00
Jesse Duffield
368d6437b8
Merge pull request #2373 from phanithinks/clipboard_patch_option_2357
2023-01-31 17:02:46 +11:00
Phanindra kumar Paladi
d0851113d1
Skipping copy_patch_to_clipboard test case
2023-01-29 10:20:56 +05:30
Ryooooooga
5dec080719
fix: fix RefName of detached HEAD to works in Chinese
2023-01-27 20:45:18 +09:00
Jesse Duffield
f7f24dbfc1
better test
2023-01-26 13:25:56 +11:00
Phanindra kumar Paladi
c6929c36ae
Corrected test assert
2023-01-23 15:53:21 +05:30
Phanindra kumar Paladi
e8f4508cba
Fixed integration test case
2023-01-23 15:48:43 +05:30
Phanindra kumar Paladi
d479a41cad
Added Integration testing the copy to clipboard in patchbuilding
2023-01-18 21:05:40 +05:30
Jesse Duffield
6c3671f807
appease linter
2022-12-30 22:47:56 +11:00
Jesse Duffield
89ba3a38b4
migrate filter path tests
2022-12-30 22:42:32 +11:00
Jesse Duffield
6f709456fe
migrate test for rename branch and pull
2022-12-30 22:42:32 +11:00
Jesse Duffield
277ca706eb
migrate fetchPrune integration test
2022-12-30 22:42:32 +11:00
Jesse Duffield
8a1c763942
more git ignore stuff in integration test
2022-12-30 22:42:32 +11:00
Jesse Duffield
0300bfdec2
update readme
2022-12-28 15:35:12 +11:00
Jesse Duffield
f770a6246b
rename function
2022-12-28 14:19:56 +11:00
Jesse Duffield
5e9a897348
migrate ignore gitignore integration test
2022-12-28 13:35:07 +11:00
Jesse Duffield
f2d0f362d4
migrate discard staged changes test
2022-12-28 13:24:23 +11:00
Jesse Duffield
ae07cf5506
migrate discard old file change test
2022-12-28 13:01:32 +11:00
Jesse Duffield
14a974742f
rename from asserter to driver
2022-12-28 11:27:48 +11:00
Jesse Duffield
9fef4447b6
move popup assertions into a struct
2022-12-28 11:00:22 +11:00
Jesse Duffield
7aa843c75a
create actions struct
2022-12-28 10:54:38 +11:00
Jesse Duffield
a27092a7ad
remove broken test
2022-12-28 10:43:14 +11:00
Jesse Duffield
a3450dfdfc
fix suggestions test
2022-12-28 10:41:42 +11:00
Jesse Duffield
b4e9806352
fix test
2022-12-28 10:32:36 +11:00
Jesse Duffield
f495945b87
fix bug
2022-12-28 10:29:32 +11:00
Jesse Duffield
47de61b57c
update integration test readme
2022-12-28 10:23:59 +11:00
Jesse Duffield
06c878c051
minor changes
2022-12-28 10:23:54 +11:00
Jesse Duffield
ed93e0a2b0
remove dependency on model
2022-12-27 22:52:20 +11:00
Jesse Duffield
c5050ecabd
move shell into test driver
2022-12-27 21:47:37 +11:00
Jesse Duffield
78b495f50a
rename input to t
2022-12-27 21:35:36 +11:00
Jesse Duffield
53e06b71ae
add tap function
2022-12-27 21:26:18 +11:00
Jesse Duffield
b166b8f776
combine assert and input structs, clean up interface
2022-12-27 21:26:18 +11:00
Jesse Duffield
c5c9f5bb94
rename
2022-12-27 21:26:18 +11:00
Jesse Duffield
09e80e5f2a
better namespacing for assertions
2022-12-27 21:26:18 +11:00
Jesse Duffield
be30cbb375
add view asserter getter struct
2022-12-27 21:26:18 +11:00
Jesse Duffield
b64f55518b
refactor commit message stuff in integration tests
2022-12-27 21:26:18 +11:00
Jesse Duffield
926ed7b9b2
more refactoring of popup stuff
2022-12-27 21:26:18 +11:00
Jesse Duffield
8052ac4fd6
add prompt asserter
2022-12-27 21:26:18 +11:00
Jesse Duffield
c976839a63
refactor prompt handling in integration tests
2022-12-27 21:26:17 +11:00
Jesse Duffield
8c89069965
update readme
2022-12-26 17:51:19 +11:00
Jesse Duffield
09db4c4397
allow checking if line is selected in Lines and TopLines methods
2022-12-26 17:45:10 +11:00
Jesse Duffield
96310288ee
allow chaining matchers
2022-12-26 17:15:33 +11:00
Jesse Duffield
c841ba8237
add switch-to-view methods
2022-12-26 16:49:54 +11:00
Jesse Duffield
9a6f21ce42
cleaner test assertions
2022-12-26 12:20:13 +11:00
Jesse Duffield
fa0414777f
rename SelectedLine to CurrentLine in tests
2022-12-26 10:42:19 +11:00
Jesse Duffield
5d2584a188
introduce ViewLines functions
2022-12-25 11:38:00 +11:00
Jesse Duffield
b623ecf898
add helper functions for popups in tests
2022-12-24 19:15:59 +11:00
Jesse Duffield
aedfce2845
refactor to not have Match at the start of assert method names, because it reads better that way
2022-12-24 19:14:52 +11:00
Jesse Duffield
13639ac924
faster test
2022-12-24 19:05:46 +11:00
Jesse Duffield
5c11b1ecb7
discard changes integration test
2022-12-24 19:05:46 +11:00
Jesse Duffield
7c7f7bf9b9
migrate diffing integration tests
2022-12-21 22:52:23 +11:00
Jesse Duffield
f910b42c9c
migrate confirm-on-quit integration test
2022-12-20 23:08:39 +11:00
Jesse Duffield
dde70486a1
apply user config changes in sandbox mode
2022-12-20 23:07:43 +11:00
Jesse Duffield
186b7197e4
clean up some integration test stuff
2022-12-20 22:54:00 +11:00
Jesse Duffield
e3c6738535
remove snapshot approach for new integration tests
2022-12-20 22:45:03 +11:00
Jesse Duffield
bc4ace8357
add commit revert integration test
2022-12-20 22:45:02 +11:00
Jesse Duffield
b40190bd94
add multi-line commit integration test
2022-12-20 22:45:02 +11:00
Jesse Duffield
b13cfdfea0
migrate branch reset integration test
2022-12-19 22:38:32 +11:00
navazjm
3a1921cab0
updated rebase confirmation message
2022-12-16 17:36:37 -06:00
Arnaud PERALTA
50b0d85cd3
integration tests for commit without pre-commit hooks in staging files menu
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
bfcbf228bf
commit integrations test with window name's assertion
2022-12-01 09:12:18 +11:00
Arnaud PERALTA
87e0f6b92d
integration tests for commit in staged files and unstaged files menus
2022-12-01 09:12:18 +11:00
Luka Markušić
b3d086bdc1
Resolve the prompt just before using it
...
In case a later command depends on a prompt input from a previous one we
need to evaluate it only after the previous prompt has been confirmed.
2022-11-25 22:46:36 +01:00
Nils Andresen
245563bc99
( #2288 ) quote remoteName before compiling regex
...
If the remote name contains special regex-chars,
the compilation of the regex might fail.
Quoting the remoteName ensures that all special chars
in the remoteName are properly escaped before compiling
the regex.
2022-11-24 12:56:28 +00:00
Ryooooooga
52a2e4c1dc
fix: fix ambiguous branch name
...
test: add an integration test for checkout branch by name
fix: fix full ref name of detached head
refactor: refactor current branch loader
chore: use field name explicitly
2022-11-14 19:05:07 +11:00
Jesse Duffield
b33ec5a050
Merge pull request #1980 from ajhynes7/stash-untracked-changes
2022-11-14 18:46:53 +11:00
Jesse Duffield
fbac05fff7
Update README.md
2022-11-13 11:54:37 +11:00
Andrew Hynes
9e91aa8b43
fix: delete duplicate import
2022-11-12 18:11:34 -03:30
Andrew Hynes
7977c2deb5
fix: delete duplicate line
2022-11-12 18:10:34 -03:30
Andrew Hynes
d7fb441a3c
refactor: sort list of integration tests
2022-11-12 18:09:55 -03:30
Jesse Duffield
f98b2edae5
fix broken CI (see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html )
...
try this
WIP
2022-11-12 18:09:15 -03:30
Jesse Duffield
97ced9e14f
fix could-not-access error
2022-11-12 18:09:15 -03:30
Andrew Hynes
66a253916e
test: add more assertions
2022-11-12 18:09:15 -03:30
Jesse Duffield
52316e628e
fix broken CI (see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html )
...
try this
WIP
2022-11-12 10:53:12 +11:00
Jesse Duffield
e8b97c9fe2
fix could-not-access error
2022-11-11 12:30:14 +11:00
Andrew Hynes
a47e72892a
Merge branch 'master' into stash-untracked-changes
2022-11-01 16:08:34 -02:30
Ryooooooga
2ec0b671e6
test: update stash/rename integration test
2022-10-16 16:26:17 +09:00
Ryooooooga
e78e829e3a
test: add an integration test for rename stash
2022-10-16 09:30:03 +09:00
Gustavo Andrioli
39e84e13f4
Use lazycore utils: Clamp and GetLazyRootDirectory
2022-10-15 13:55:44 -03:00
Jesse Duffield
fc0b14edef
Update README.md
2022-10-11 08:40:35 -07:00
Andrew Hynes
8c46a0110d
Merge branch 'master' into stash-untracked-changes
2022-10-06 22:59:06 -02:30
Andrew Hynes
a30d924afe
test: add test for stash including untracked files
2022-10-06 22:53:13 -02:30
Andrew Hynes
f4c188fa5b
fix(test): add stash name
2022-10-06 22:42:49 -02:30
Jesse Duffield
e3f21f0588
strip NUL bytes instead of replacing with space
2022-10-03 09:29:41 -07:00
Jesse Duffield
8858f03606
adjust test temporarily to unblock master
2022-10-02 20:34:14 -07:00
Jesse Duffield
c953871ec7
use lowercase 'quote' for consistency with existing custom command template functions
2022-10-02 18:43:25 -07:00
Ryooooooga
e16f1ba84f
test: add integration test for Quote
2022-10-01 20:55:49 +09:00
Jesse Duffield
23d39c79b2
update test
2022-09-24 23:37:17 +02:00
Luka Markušić
0141bbde0e
Add test for amending a merge commit
2022-09-24 23:37:17 +02:00
Luka Markušić
4c7d363959
Add CheckoutBranch and Merge helpers for integration tests
2022-09-24 23:37:17 +02:00
Jesse Duffield
fd66499c8f
Merge pull request #2167 from xiaoliwang/remove_deprecated
2022-09-23 23:01:40 -07:00
jiepeng
b8900baf1a
remove deprecated calls
2022-09-17 15:10:41 -07:00
Mihai22125
7e9dffe1b9
Add Key field to CustomCommandPrompt struct
...
Add Form field to CustomCommandObjects struct
Write user prompts responses to Form field
Ensure that map keys exists
Add form prompts integration test
Remove redundant index
2022-09-17 14:58:44 -07:00
Jesse Duffield
a92f0f7c89
increase recording leeway
2022-09-17 10:50:04 -07:00
Jesse Duffield
6dca3e1766
allow two attempts on CI
2022-09-16 22:31:46 -07:00
Jesse Duffield
850a82784a
earlier failure
2022-09-16 22:22:20 -07:00
Jesse Duffield
74acb3e86a
add integration tests for cherry picking
2022-09-16 22:15:16 -07:00
Jesse Duffield
9351af3829
yet another retry to reduce flakiness
2022-09-16 08:55:16 -07:00
Jesse Duffield
7af7af27c6
various changes to improve integration tests
2022-09-16 08:42:39 -07:00
Andrew Hynes
db9373662a
test: add test for basic stash
2022-09-15 23:11:27 -02:30
Jesse Duffield
7b757d1cfe
add branch rebase integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
843488bff4
add branch delete integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
a9d4ff2aee
cleaning up imports
2022-09-09 20:55:47 -07:00
Jesse Duffield
8cdfc6758f
add another bisect integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
010f430d1f
add bisect integration test
2022-09-09 20:55:47 -07:00
Jesse Duffield
79620fc6cf
don't quit integration test tui upon error
2022-09-09 20:55:47 -07:00
Jesse Duffield
47f84b6aea
better assertions
2022-09-09 20:55:47 -07:00
Ryooooooga
6248091e9c
test: improve integration test portability
2022-08-18 23:48:53 +09:00
Jesse Duffield
6d7a7afbbc
update test readme
2022-08-15 19:24:36 +10:00
Jesse Duffield
6abcfd5cba
missed a spot
2022-08-14 21:39:07 +10:00
Jesse Duffield
af45692e24
fix CI
2022-08-14 21:34:37 +10:00
Jesse Duffield
fed2aaf37f
migrate menuFromCommand integration test
2022-08-14 21:30:37 +10:00
Jesse Duffield
b2ae651686
add slow flag to integration tests
2022-08-14 20:49:20 +10:00
Jesse Duffield
e875d6b448
ensuring you can't accidentally forget to add a test to the tests list
2022-08-14 20:49:20 +10:00
Jesse Duffield
53979f7cec
a more complex custom command test
2022-08-14 20:49:20 +10:00
Jesse Duffield
9c0d860980
basic custom command test
2022-08-14 20:49:20 +10:00
Jesse Duffield
5173d7f5e1
better CLI interface
2022-08-14 17:20:52 +10:00
Jesse Duffield
349a7d2453
even better structure
2022-08-14 11:24:07 +10:00
Jesse Duffield
d1b093e703
no need for this
2022-08-13 19:30:51 +10:00
Jesse Duffield
cad84c9e74
ensure we don't try to run another test when lazygit is invoked as a daemon
2022-08-13 14:12:35 +10:00
Jesse Duffield
5e475355bf
add tests for my tests
2022-08-13 13:56:50 +10:00
Jesse Duffield
304d74370e
refactor to ensure code doesn't depend on integration code
2022-08-13 13:56:50 +10:00
Jesse Duffield
2bdefe2049
add assertion to prevent flakiness
2022-08-13 13:56:50 +10:00
Jesse Duffield
faed509bfd
fix CI
2022-08-13 13:56:50 +10:00
Jesse Duffield
b8d9443999
rename helpers to components
2022-08-13 13:55:17 +10:00
Jesse Duffield
610eddfe05
fix CI
2022-08-13 13:55:09 +10:00
Jesse Duffield
1ef6f4c0e1
renaming
2022-08-13 13:55:08 +10:00
Jesse Duffield
ae798157d2
update comments
2022-08-13 13:55:08 +10:00
Jesse Duffield
a45b22e12f
re-name Input and improve documentation
2022-08-13 13:55:08 +10:00
Jesse Duffield
ba96baee32
move code from main into app package to allow test to be injected
2022-08-13 13:55:08 +10:00
Jesse Duffield
d890238c7b
move input and assert into integration tests package
2022-08-13 13:52:13 +10:00
Jesse Duffield
46ae55f91e
introduce gui adapter
2022-08-13 13:51:56 +10:00
Jesse Duffield
225c563c63
another integration test
2022-08-11 21:24:16 +10:00
Jesse Duffield
77881a9c7d
add new integration test pattern
2022-08-11 21:24:15 +10:00
Jesse Duffield
4c5fa83566
ensure we remove temporary directory
2022-08-07 11:16:14 +10:00
Jesse Duffield
7410acd1aa
move merge conflicts code into controller
2022-08-07 11:16:03 +10:00
Jesse Duffield
6d133fd611
better handling of gitignore files
2022-07-05 19:33:44 +10:00
Jesse Duffield
8ef0032ee2
update snapshot to include author name and email in git log
2022-05-08 13:29:57 +10:00
Jesse Duffield
3bf0c9ef44
more documentation
2022-05-07 16:02:04 +10:00
casswedson
b7928042f0
chore: typo hunting ft. codespell
2022-04-06 08:52:41 +10:00
Jesse Duffield
20ec6d98ad
refactor integration tests
2022-03-27 14:58:20 +11:00
Jesse Duffield
ae10a5ea88
add git fetch prune integration test
2022-03-27 10:28:46 +11:00
Jesse Duffield
cc5d13c833
allow adding whole diff to patch
...
this was causing a panic
add integration test for toggling all commit files
2022-03-23 23:36:58 +11:00
Jesse Duffield
a34bdf1a04
update linters
2022-03-19 12:12:57 +11:00
Jesse Duffield
e0ae134ee4
generate snapshot for expected dir in separate tmp dir
2022-01-29 00:17:32 +11:00
Jesse Duffield
1d90e1b565
add submodule integration tests
2022-01-29 00:17:32 +11:00
Jesse Duffield
5e6e1617aa
add another bisect integration test
2022-01-26 16:52:20 +11:00
Jesse Duffield
2691477aff
allow sandbox mode with integration tests
2022-01-17 19:14:59 +11:00
Jesse Duffield
2436ff197a
fewer panics
2022-01-09 14:14:47 +11:00
Jesse Duffield
43a4fa970d
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
b4c078d565
WIP
2022-01-04 09:07:15 +11:00
Jesse Duffield
2008c39516
add tests for dealing with remotes
2021-10-22 21:33:17 +11:00
Jesse Duffield
273aba38d4
stricter CI
2021-04-09 00:15:48 +10:00
Jesse Duffield
a229547048
fix CI
2021-04-07 22:59:53 +10:00
Jesse Duffield
c6825e3d0d
skip some tests that are failing on CI for some reason
2021-04-06 19:34:32 +10:00
Jesse Duffield
fb9b6314a0
ensure we're passing the right testing struct pointer around
2021-04-06 19:34:32 +10:00
Jesse Duffield
d4f3b292e6
even slower retries for CI
2021-04-06 19:34:32 +10:00
Jesse Duffield
ace4350319
update snapshots to include tags comparison
2021-04-06 19:34:32 +10:00
Jesse Duffield
27525f1d42
support passing extra command args in integration tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
440eb387d7
much cleaner integration test code
2021-04-06 19:34:32 +10:00
Jesse Duffield
28ffaf9348
tiny refactor
2021-04-06 19:34:32 +10:00
Jesse Duffield
d7da6dde0e
allow decimal replay speeds for integration tests
2021-04-06 19:34:32 +10:00
Jesse Duffield
8e9d08bc10
minor cleanup of integration code
2021-04-06 19:34:32 +10:00