Files
vim-gitgutter/test
Andy Stewart b3db866aab Use "undo" instead of "revert" for discarding a hunk.
"Undo" is a better name than "revert" because:

- "revert" sounds like it has something to do with `git-revert` but they
  are entirely different;
- "undo" is consistent with vim's "undo": discarding changes and going
  back to the original.

Maintain backwards compatibility and add deprecation warnings.

Closes #306.
2016-04-21 11:40:27 +01:00
..
2015-08-17 09:51:09 +02:00
2014-11-14 14:06:49 +01:00
2014-11-12 16:52:58 +01:00
2014-11-14 14:14:42 +01:00
2015-03-10 10:18:30 +01:00
2015-08-17 09:51:09 +02:00
2014-11-14 14:06:49 +01:00
2014-11-14 14:14:42 +01:00
2015-03-05 11:36:43 +01:00
2014-11-14 14:06:49 +01:00
2014-11-14 14:06:49 +01:00
2014-11-14 14:06:49 +01:00
2014-11-14 14:06:49 +01:00

Testing vim-gitgutter

Run the tests

$ cd test
$ ./test

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 (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.