PONSARD François 6396acce84 Initial Commit vor 8 Jahren
..
=fixture=.txt 6396acce84 Initial Commit vor 8 Jahren
README.markdown 6396acce84 Initial Commit vor 8 Jahren
addLines.expected 6396acce84 Initial Commit vor 8 Jahren
addLinesFish.expected 6396acce84 Initial Commit vor 8 Jahren
ambiguousFile.expected 6396acce84 Initial Commit vor 8 Jahren
fileAddedToGit.expected 6396acce84 Initial Commit vor 8 Jahren
filenameWithEquals.expected 6396acce84 Initial Commit vor 8 Jahren
filenameWithSquareBrackets.expected 6396acce84 Initial Commit vor 8 Jahren
fix[tu]re.txt 6396acce84 Initial Commit vor 8 Jahren
fixture.txt 6396acce84 Initial Commit vor 8 Jahren
followSymlink.expected 6396acce84 Initial Commit vor 8 Jahren
helper.vim 6396acce84 Initial Commit vor 8 Jahren
hunkHunkOutsideNoopRevertGitDiffStaged.expected 6396acce84 Initial Commit vor 8 Jahren
hunkHunkOutsideNoopStageGitDiffStaged.expected 6396acce84 Initial Commit vor 8 Jahren
hunkOutsideNoopRevertSigns.expected 6396acce84 Initial Commit vor 8 Jahren
hunkOutsideNoopStageSigns.expected 6396acce84 Initial Commit vor 8 Jahren
hunkRevertGitDiff.expected 6396acce84 Initial Commit vor 8 Jahren
hunkRevertNearbyGitDiff.expected 6396acce84 Initial Commit vor 8 Jahren
hunkRevertNearbySigns.expected 6396acce84 Initial Commit vor 8 Jahren
hunkRevertSigns.expected 6396acce84 Initial Commit vor 8 Jahren
hunkStageGitDiff.expected 6396acce84 Initial Commit vor 8 Jahren
hunkStageNearbyGitDiff.expected 6396acce84 Initial Commit vor 8 Jahren
hunkStageNearbyGitDiffStaged.expected 6396acce84 Initial Commit vor 8 Jahren
hunkStageNearbySigns.expected 6396acce84 Initial Commit vor 8 Jahren
hunkStageSigns.expected 6396acce84 Initial Commit vor 8 Jahren
keepAlt.expected 6396acce84 Initial Commit vor 8 Jahren
keepModified.expected 6396acce84 Initial Commit vor 8 Jahren
keepOpMarks.expected 6396acce84 Initial Commit vor 8 Jahren
modifyLines.expected 6396acce84 Initial Commit vor 8 Jahren
noModifications.expected 6396acce84 Initial Commit vor 8 Jahren
orphanedSigns.expected 6396acce84 Initial Commit vor 8 Jahren
removeFirstLines.expected 6396acce84 Initial Commit vor 8 Jahren
removeLines.expected 6396acce84 Initial Commit vor 8 Jahren
signColumnAlways.expected 6396acce84 Initial Commit vor 8 Jahren
test 6396acce84 Initial Commit vor 8 Jahren
testAddLines.vim 6396acce84 Initial Commit vor 8 Jahren
testAddLinesFish.vim 6396acce84 Initial Commit vor 8 Jahren
testEditAmbiguousFile.vim 6396acce84 Initial Commit vor 8 Jahren
testFileAddedToGit.vim 6396acce84 Initial Commit vor 8 Jahren
testFilenameWithEquals.vim 6396acce84 Initial Commit vor 8 Jahren
testFilenameWithSquareBrackets.vim 6396acce84 Initial Commit vor 8 Jahren
testFollowSymlink.vim 6396acce84 Initial Commit vor 8 Jahren
testHunkOutsideNoop.vim 6396acce84 Initial Commit vor 8 Jahren
testHunkRevert.vim 6396acce84 Initial Commit vor 8 Jahren
testHunkRevertNearbyHunk.vim 6396acce84 Initial Commit vor 8 Jahren
testHunkStage.vim 6396acce84 Initial Commit vor 8 Jahren
testHunkStageNearbyHunk.vim 6396acce84 Initial Commit vor 8 Jahren
testKeepAlt.vim 6396acce84 Initial Commit vor 8 Jahren
testKeepModified.vim 6396acce84 Initial Commit vor 8 Jahren
testKeepOpMarks.vim 6396acce84 Initial Commit vor 8 Jahren
testModifyLines.vim 6396acce84 Initial Commit vor 8 Jahren
testNoModifications.vim 6396acce84 Initial Commit vor 8 Jahren
testOrphanedSigns.vim 6396acce84 Initial Commit vor 8 Jahren
testRemoveFirstLines.vim 6396acce84 Initial Commit vor 8 Jahren
testRemoveLines.vim 6396acce84 Initial Commit vor 8 Jahren
testSignColumnAlways.vim 6396acce84 Initial Commit vor 8 Jahren
testUntrackedFileOutsideRepo.vim 6396acce84 Initial Commit vor 8 Jahren
testUntrackedFileWithinRepo.vim 6396acce84 Initial Commit vor 8 Jahren
untrackedFileOutsideRepo.expected 6396acce84 Initial Commit vor 8 Jahren
untrackedFileWithinRepo.expected 6396acce84 Initial Commit vor 8 Jahren

README.markdown

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.