Hello!
I have created a test-suite for evil-helix and possibly other vim-alike editors.
You can check it out here: https://github.com/thomie/vim-keymap-test
Each test defines the contents of the input buffer (for example foo bar), a list of commands to run (for example [dw]), and the expected output (bar in this case).
For each test, the test runner starts vim or (evil-)hx as an external process, sets the input buffer, simulates a user executing the commands, and compares the output with the expected output.
I have found it quite useful while hacking on evil-helix (merge requests incoming!), e.g. to prevent regressions.
Let me know what you think.
Hello!
I have created a test-suite for evil-helix and possibly other vim-alike editors.
You can check it out here: https://github.com/thomie/vim-keymap-test
Each test defines the contents of the input buffer (for example
foo bar), a list of commands to run (for example[dw]), and the expected output (barin this case).For each test, the test runner starts
vimor(evil-)hxas an external process, sets the input buffer, simulates a user executing the commands, and compares the output with the expected output.I have found it quite useful while hacking on evil-helix (merge requests incoming!), e.g. to prevent regressions.
Let me know what you think.