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

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.