Commit Graph

33 Commits

Author SHA1 Message Date
David Dworken
c8c1523683
Update test goldens + drop duplicate macos version from go tests 2024-08-25 16:04:55 -07:00
David Dworken
9b7d7c57b5
Update goldens for test broken by go update 2024-08-25 15:14:13 -07:00
David Dworken
0c9a369c54
Add test for forced compact mode (from #237) 2024-08-11 11:55:08 -07:00
David Dworken
c3adc902ad
Add basic fix for #225 by escaping tab characters before rendering
This is a tricky bug to fix because the width of a tab character varies depending on context. This means that when we're trying to build a table and calculating the width of columns for budgeting, we can't actually know the width of a tab without knowing exactly what characters come before it. This is in theory doable, but it leads to some really complex code that I'd rather not adopt.
2024-07-06 19:21:34 -07:00
David Dworken
b323351731
Add ability to skip config modifications for #212 (#216)
* Add ability to skip config modifications

* Update golden names to fork on OS

* Remove incorrect newline in golden
2024-06-13 21:16:17 -07:00
David Dworken
095f4a4741
Add full fix for #215 along with a test to reproduce the issue (#218) 2024-06-08 20:50:45 -07:00
David Dworken
10f01b8483
Add support for enabling/disabling syncing post-install 2024-04-28 16:33:43 -07:00
David Dworken
c933cbc792
Add support for custom key bindings for #190 (#209)
* Add support for custom key bindings for #190

* Add tests for configuring custom key bindings

* Simplify key bindings test

* Add docs on custom key bindings + error message for unhandled actions
2024-04-28 13:50:09 -07:00
David Dworken
0d6bf20e6d
Remove darwin-21 goldens since they're no longer used now that GH upgraded their macos image (#210) 2024-04-28 07:49:17 -07:00
David Dworken
0c79cbd3cc
Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events and updating the golden to reflect this 2024-04-21 11:44:18 -07:00
David Dworken
0e835c0640
Add test for horizontal scrolling other columns for #188 2024-04-05 16:21:37 -07:00
David Dworken
6aea2cb4d9
Remove minor version numbers from os versions for golden files for tests 2024-04-03 19:04:49 -07:00
David Dworken
6065068f9b
Enable colored golden tests for linux (#184)
* Enable golden tests for linux and ensure all goldens get saved as outputs

* Swap in OS specific goldens

* Update colored goldens to take into account OS version, since different macos versions have different behavior here

* Update goldens

* Re-enable golden tests

* Add missing golden

* Empty commit

* Remove linux kernel version from OS name
2024-03-28 08:03:04 -07:00
David Dworken
ef05dc4707
Delete an unused file 2024-02-25 07:48:54 -08:00
David Dworken
7c55bf7a26
Delete temporarily unused goldens 2024-02-24 09:53:31 -08:00
David Dworken
6b75bb543f
Add updated goldens 2024-02-24 08:02:29 -08:00
David Dworken
8ae404a50b
Update golden 2024-02-23 22:54:36 -08:00
David Dworken
9eaf3aad10
Update test golden 2024-02-22 22:36:27 -08:00
David Dworken
ec704d5345
Update colored golden 2024-02-22 18:55:32 -08:00
David Dworken
5e87aa9eec
Add basic readline-like support for using control-left and control-right to scroll horizontally by one word at a time 2024-02-19 13:54:52 -08:00
David Dworken
199307f74a
Add support for control-A and control-E shortcuts similar to GNU readline 2024-02-19 12:26:44 -08:00
David Dworken
b27fde71c9
Run integration tests in parallel to speed up testing (#175)
* Remove a few direct DB insertions to prepare for parallel tests

* Revert "Remove a few direct DB insertions to prepare for parallel tests"

This reverts commit f8a3552ad8.

* Add rudimentary experiment of splitting tests into two chunks to make them faster

* Add missing tag

* Remove code that enforces that all goldens are used, since it is incompatible with how tests are currently split into chunks

* Lay out the framework for checking goldens being used across all test runs

* Fix missing brace

* Revert "Remove code that enforces that all goldens are used, since it is incompatible with how tests are currently split into chunks"

This reverts commit 06cc3eedbc.

* Add initial work towards checking that all goldens are used

* Delete incorrect and unreferenced matrix

* Upgrade actions/upload-artifact to see if that makes the download in the next job work

* Alternatively, try downloading the artifact by name

* Update golden checker to read all the golden artifacts

* Swap to using glob to enumerate all golden files, rather than hardcoding them

* Remove debugging commands

* Remove goldens that are actually used

* Remove another golden that is actually used

* Add more comprehensive support for test sharding

* Fix references to test shards and increase shard count

* Shard the fuzz test

* Add debug prints

* Mark additional tests for sharding

* Fix logic error that broke test sharding

* Remove debug print

* Fix incorrect logic with skipping the fuzz test

* Move sharding functions to testutils and add some comments

* Upgrade all setup-go actions to enable caching of deps

* Remove goldens that don't exist

* Remove new line

* Reduce delay

* Correct stage name

* Remove incorrect skip code from the first version of sharding

* Remove unused import

* Reduce number of test shards to match GitHub's limit of 5 concurrent macos jobs

* Use cask for installing homebrew to speed up github actions

* More cleanup for unused goldens
2024-02-11 11:54:27 -08:00
David Dworken
6575c8ae42
Fix handling of new lines in commands for #163 (#170)
* Fix handling of new lines in commands for #163

* Move code for table from lib.go to query.go

* Update goldens
2024-02-06 20:04:21 -08:00
David Dworken
a3f1282368
Add ability to configure a default filter (for #76) (#161)
* Add ability to configure a default filter (for #76)

* Add test for color of default filter

* Add basic test for default filter

* Add goldens for tests

* Add more tests for default filters

* Update goldens

* Add another golden

* Update goldens

* Remove debug log

* Add golden to allowlist

* Update goldens
2024-01-07 21:06:22 -08:00
David Dworken
e86f7bf382
Add support for quotes around colons when searching (#162) 2024-01-07 18:56:30 -08:00
David Dworken
29ba7bc272
Invert condition so that a bunch of golden tests only run on actions, since that is now our primary testing environment (#159)
* Invert condition so that a bunch of golden tests only run on actions, since that is now our primary testing environment

* Update goldens to match them on GH actions

* Update goldens to split them based on OS so they can run on GH actions

* Add runtime.GOOS to golden names

* Update goldens that are now split by OS

* Update another test to fork on OS

* Update shell exclusion to properly exclude fish

* More golden updates

* Add more goldens

* More goldens
2023-12-29 07:31:56 -08:00
David Dworken
eec0745fbe
Revert "Update goldens for ubuntu"
This reverts commit 1e20f2f518.
2023-12-23 17:20:54 -08:00
David Dworken
1e20f2f518
Update goldens for ubuntu 2023-12-23 06:42:41 -08:00
David Dworken
e5764c6f07
Update AssertAllGoldensUsed to use an allowlist of goldens that may not be referenced in GH actions 2023-12-22 06:51:21 -08:00
David Dworken
9f5453f710
Fix issue where we paniced because the colored TUI test goldens weren't used on linux 2023-12-21 18:31:29 -08:00
David Dworken
a58c426ad3
Improve test to make the golden clearer about what is being tested 2023-12-21 17:43:26 -08:00
David Dworken
e5c038c8d6
Add back goldens for tab completion that were accidentally removed in an earlier merge conflict resolution 2023-12-21 17:37:44 -08:00
David Dworken
88f1c0168e
Move test goldens to testdata/ directory to be more idiomatic, and add assertion that they're all actively being used by the tests (#154)
* Move golden files to testdata dir

* Add assertion that requires that all goldens are used

* Add map init so the map is non-nil

* Add print to confirm that tests finished running

* Remove colon so that this doesn't match against gotestsum looking for the substring "panic:", which can happen depending on how stdout is buffer

* Revert "Remove colon so that this doesn't match against gotestsum looking for the substring "panic:", which can happen depending on how stdout is buffer"

This reverts commit b44e53a17b.
2023-12-21 17:06:46 -08:00