blob: eb79d087c5fdf20e48c93555e1ee1735cdae49f6 [file] [log] [blame]
Bram Moolenaara9537d22014-08-29 10:04:47 +02001This directory contains tests for various Vim features.
2
3If it makes sense, try to add a new test to an already existing file. You may
4want to separate it from other tests in that file using :" (that's an Ex
5command comment).
6
7The numbered tests are older, we have switched to named tests.
Bram Moolenaar022b8962016-01-03 22:16:20 +01008And the newest way of testing is to use assert functions, see test_assert.vim
9for an example.
Bram Moolenaara9537d22014-08-29 10:04:47 +020010
11To add a new test:
121) Create test_<subject>.in and test_<subject>.ok files.
132) Add them to all Makefiles (Make*) in alphabetical order (search for an
14 existing test_file.out to see where to add the new one).
153) Use make test_<subject>.out to run a single test file in src/testdir/.
164) Also add an entry in src/Makefile.
17
18Keep in mind that the files are used as if everything was typed.
19A line break is like pressing Enter. If that happens on the last line you'll
20hear a beep.