mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-13 05:43:53 -05:00
Add basic tests.
This commit is contained in:
21
test/README.markdown
Normal file
21
test/README.markdown
Normal file
@@ -0,0 +1,21 @@
|
||||
## Testing vim-gitgutter
|
||||
|
||||
### Run the tests
|
||||
|
||||
```sh
|
||||
$ cd test
|
||||
$ ./test.sh
|
||||
```
|
||||
|
||||
### Add a new test
|
||||
|
||||
1. Add new test function to `test.vim`.
|
||||
2. Add a call to the test function in `test.vim`.
|
||||
3. Run the tests.
|
||||
4. Inspect output from the new test function. If good, copy it to `<blah>.ok`.
|
||||
5. Run the tests to ensure new test's output is verified.
|
||||
6. `rm *.out` and commit changes.
|
||||
|
||||
### Potential test pitfalls
|
||||
|
||||
Currently the tests are order-dependent because the sign id counter isn't reset between tests.
|
||||
Reference in New Issue
Block a user