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

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.