From e573b3020c032400eed60b649a2cbf55266e6bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:03:25 +0200 Subject: Add current configurations from old repository --- vim/bundle/vim-gitgutter/test/README.markdown | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 vim/bundle/vim-gitgutter/test/README.markdown (limited to 'vim/bundle/vim-gitgutter/test/README.markdown') diff --git a/vim/bundle/vim-gitgutter/test/README.markdown b/vim/bundle/vim-gitgutter/test/README.markdown new file mode 100644 index 0000000..2be0c37 --- /dev/null +++ b/vim/bundle/vim-gitgutter/test/README.markdown @@ -0,0 +1,30 @@ +## Testing vim-gitgutter + +### Run the tests + +```sh +$ cd test +$ ./test +``` + +### 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 +``` + +- Run the tests. +- Inspect output (in `foo.actual`) from the new test. If good, copy it to `foo.expected`. +- Run the tests to ensure new test's output is verified. +- Commit changes. + +### Limitations + +- Currently tests are done by writing out a file and comparing it to a known good one. +- There's no support for assertions within the testcase code. + -- cgit v1.2.3