mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Testing vim-gitgutter
Run the tests
$ cd test
$ ./test.sh
Add a new test
- Add a test file named like
testFoo.vim. It should have this structure:
source helper.vim
call Setup()
" test code here
- Run the tests.
- Inspect output from the new test. If good, copy it to
foo.ok. - Run the tests to ensure new test's output is verified.
rm *.outand commit changes.
Limitations
- Currently tests are done by writing out a file and comparing it to a known good one.
- Only 1 file per test is supported.
- There's no support for assertions within the testcase code.