kitty-scrollback.nvim uses plenary.nvim's plenary.tests_harness as its testing harness.
- Execute tests from the command line (preferred)
make test # run all tests excluding tests intended for demos
make test-all # run all tests
make test-all-sequential # run all tests sequentially, this is useful for machines with limited resources
make test-demo # run all demo tests
make test-demo-main # run only the main demo tests shown on the README
make test-demo-config # run all demo configuration tests
- Execute tests from Neovim
- Run entire tests directory:
:PlenaryBustedDirectory tests
- Run currently open file
:PlenaryBustedFile %
- Run entire tests directory:
git clone git@github.com/mikesmithgh/kitty-scrollback.nvim.wiki.git
- The wiki repo should be a the same level as
kitty-scrollback.nvim
- The wiki repo should be a the same level as
cd kitty-scrollback.nvim
make record-demo
cd kitty-scrollback.nvim.wiki
ls -1 assets/*.mov | xargs -I {} scripts/mov_to_gif.sh {}
- Upload all
mov
files in theassets
directory to Github by dragging them to a markdown file in the browser - Copy all the generated embedded video urls and paste in
uploaded_movs
array in themake_video_markdown_files.sh
script ./scripts/make_video_markdown_files.sh
./scripts/make_adv_config_markdown_file.lua &> Advanced-Configuration-Examples.md
- Run the workflow tests
- Check
enable_debug_vnc
to enable TurboVNC, ngrok, and tmate debugging- This allows you to connect to the Github runner via vnc (for GUI) and ssh
- Troubleshooting:
- If the Github runner timers out and requires a login, you can ssh into the tmate session and restart VNC.
export PATH="/opt/TurboVNC/bin:$PATH" vncserver -kill :1 vncserver -geometry 2560x1080 -SecurityTypes None
- Check
enable_debug_tmate
to enable tmate debugging- This allows you to connect to the Github runner via ssh
- Check
- Enable verbose logging by running the action with debug logging enabled.
- This can also be achieved by setting
RUNNER_DEBUG
to1
,RUNNER_DEBUG=1 make test
- This can also be achieved by setting