vimwiki/test
Dave Gauer ad95e3463f Add error handling to VimwikiSearch per issue #420
- Create function wrapper around lvimgrep for input checking, pattern
   quoting, and error handling.
 - Add Vader tests for VimwikiSearch.
 - Change syntax loading from try/catch to explicit file check (to
   prevent Vader test bug).
 - Update doc/vimwiki.txt for changes.
 - Change test script to run Vader tests separately
2019-10-12 18:31:43 -04:00
..
resources Add error handling to VimwikiSearch per issue #420 2019-10-12 18:31:43 -04:00
vader_includes Fix the method for changing the Vimwiki syntax for tests. 2019-08-22 05:52:54 -06:00
link_creation.vader Move helper files so they don't get run with test/* 2019-07-20 22:12:07 -06:00
list_VimwikiReturn.vader Fix 'VimwikiReturn 3 5' behavior within code blocks. 2019-08-23 14:42:07 -06:00
Readme.md Fix docker build command syntax. Closes #736. 2019-08-01 05:19:39 -06:00
run_tests.sh Add error handling to VimwikiSearch per issue #420 2019-10-12 18:31:43 -04:00
search.vader Add error handling to VimwikiSearch per issue #420 2019-10-12 18:31:43 -04:00
tabnext_delay.vader Move helper files so they don't get run with test/* 2019-07-20 22:12:07 -06:00
vimrc Fix paths and add some additional settings 2019-07-14 21:50:49 -06:00

Vimwiki Tests

This directory contains a test framework used to automatically test/verify Vimwiki functionality. It is based on the following tools:

Resources

Building Docker Image

To build the Docker image run docker build -t vimwiki . from the Vimwiki repository root (same location as the Dockerfile).

Running Tests

Manual Steps

Starting in the test directory run this command:

docker run -it --rm -v $PWD/../:/testplugin -v $PWD/../test:/home vimwiki vim_7.4.1099 -u test/vimrc -i NONE

This will open a vim instance in the docker container and then all tests can be run with :Vader test/* or individual tests can be run.

Note: Substitute vim_7.4.1099 for any of the vim versions in the Dockerfile.

Automated Tests

The script in the test/ directory named run_test.sh can be used to automatically run all tests for all installed vim versions. The vim/nvim versions are parsed from the Dockerfile. This script will also run Vint for all plugin source files. For more information run ./run_tests.sh -h.

Known Issues

  1. neovim v0.2.x does not work correctly with Vader output from the docker container. No test results are printed and an error message saying Vim: Error reading input, exiting...
    • Probably need to look into this more and determine if the issue is Vader, Neovim, or Docker.