mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 20:13:46 -05:00
27 lines
418 B
Markdown
27 lines
418 B
Markdown
## Testing vim-gitgutter
|
|
|
|
### Run the tests
|
|
|
|
```sh
|
|
$ cd test
|
|
$ ./test.sh
|
|
```
|
|
|
|
### Add a new test
|
|
|
|
- Add a test file named like `testFoo.vim`. It should have this structure:
|
|
|
|
```viml
|
|
source helper.vim
|
|
call Setup()
|
|
|
|
" test code here
|
|
|
|
quit!
|
|
```
|
|
|
|
- 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 *.out` and commit changes.
|