Skip to content

Testsuite #68

@thomie

Description

@thomie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions