Skip to content

Commit c599126

Browse files
committed
Add to unittesting, instructions
1 parent 6382df8 commit c599126

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,15 @@ this or other vim plugins
173173
the `vim` docstring (instead of manually updating the .txt file). See the
174174
misc/build_doc for more on how this is done.
175175
* Use [vader](https://github.com/junegunn/vader.vim) for unittesting. Use
176-
`test/run-tests.sh` to run them. For this to run you have to first git clone
177-
vim-repeat and vim-vader in the root of this repo:
176+
`test/run-tests.sh` to run them:
178177

179-
```sh
180-
git clone https://github.com/junegunn/vader.vim.git
181-
git clone https://github.com/tpope/vim-repeat.git
182178
```
179+
vim -Nu test/vimrc
180+
:set rtp+=vader.vim/plugin
181+
:set rtp+=vim-repeat/autoload
183182
183+
:Vader test/*
184+
```
184185
## TODO
185186
186187
- [ ] Method to delete all the debugging strings in current buffer / all "touched" buffers - see far.vim

test/run-tests.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/usr/bin/env bash
2-
# file taken directly from https://github.com/junegunn/vader.vim
3-
4-
set -e
5-
62

73
oldpwd=$PWD
84
cd $(dirname $(readlink -f $0))/..
5+
6+
# make sure dependencies are set up
97
test -d vader.vim || git clone https://github.com/junegunn/vader.vim.git
108
test -d vim-repeat || git clone https://github.com/tpope/vim-repeat.git
9+
test -d vader.vim || exit 1
10+
test -d vim-repeat || exit 1
11+
1112
command vim -Nu test/vimrc -c 'Vader! test/*'
13+
ret=$?
1214
cd $oldpwd
15+
16+
exit $ret

0 commit comments

Comments
 (0)