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