Skip to content

Commit

Permalink
Add e2e tests for commit diff
Browse files Browse the repository at this point in the history
  • Loading branch information
u-quark committed Jul 21, 2024
1 parent 48519d0 commit afed944
Show file tree
Hide file tree
Showing 41 changed files with 1,639 additions and 12 deletions.
4 changes: 4 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ Need to have `gg` built first! - disable the tests temporally.

`GG_PATH="$(realpath ./result/bin/gg)" nix develop --command bash -c "cd e2e-tests; pytest -vvv"`

While developing a tests, to add all screenshots:

`rm e2e-tests/screenshots/test_XXX_*; GG_PATH="$(realpath ./result/bin/gg)" nix develop --command bash -c "cd e2e-tests; pytest -vvv -k test_XXX --add-screenshots"; cat e2e-tests/screenshots/test_XXX_*`

Alternatives
============

Expand Down
36 changes: 36 additions & 0 deletions e2e-tests/screenshots/test_diff_001
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
dda83ecb 👀 Add test_a test <test@mail.com> 1970-01-01 00:00
1751c62d Initial commit test <test@mail.com> 1970-01-01 00:00
















Add test_a 📝1 ➕︎3 ➖︎0 dda83ecbf53d1133b7ed45455cdb279904d61b2d


Author: test <test@mail.com>
Date: 1970-01-01 00:00

✨📄test_a
 ...║ 
 │1║line 1
 │2║line 2
 │3║line 3






On main
36 changes: 36 additions & 0 deletions e2e-tests/screenshots/test_diff_002
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
62c8499c 👀 Modify test_a: modify line test <test@mail.com> 1970-01-01 00:00
dda83ecb Add test_a test <test@mail.com> 1970-01-01 00:00
1751c62d Initial commit test <test@mail.com> 1970-01-01 00:00















Modify test_a: modify line 📝1 ➕︎1 ➖︎1 62c8499c952b3bace50a1dec8260f05f8ebd5e01


Author: test <test@mail.com>
Date: 1970-01-01 00:00

📝test_a, ✏️ 66% similar
 ... ║ 
 1│ 1║line 1
 2│ ║line 2
 │ 2║mod line
 3│ 3║line 3





On main
36 changes: 36 additions & 0 deletions e2e-tests/screenshots/test_diff_003
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
6360b5bf 👀 Modify test_a: add lines test <test@mail.com> 1970-01-01 00:00
62c8499c Modify test_a: modify line test <test@mail.com> 1970-01-01 00:00
dda83ecb Add test_a test <test@mail.com> 1970-01-01 00:00
1751c62d Initial commit test <test@mail.com> 1970-01-01 00:00














Modify test_a: add lines 📝1 ➕︎2 ➖︎0 6360b5bf649701755748f3bac70b43129564d63f


Author: test <test@mail.com>
Date: 1970-01-01 00:00

📝test_a, ✏️ 75% similar
 ...║ 
 1│1║line 1
 2│2║mod line
 3│3║line 3
 │4║line 4
 │5║line 4




On main
Loading

0 comments on commit afed944

Please sign in to comment.