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