Bram Moolenaar | a9537d2 | 2014-08-29 10:04:47 +0200 | [diff] [blame] | 1 | This directory contains tests for various Vim features. |
| 2 | |
| 3 | If it makes sense, try to add a new test to an already existing file. You may |
| 4 | want to separate it from other tests in that file using :" (that's an Ex |
| 5 | command comment). |
| 6 | |
| 7 | The numbered tests are older, we have switched to named tests. |
Bram Moolenaar | 022b896 | 2016-01-03 22:16:20 +0100 | [diff] [blame] | 8 | And the newest way of testing is to use assert functions, see test_assert.vim |
| 9 | for an example. |
Bram Moolenaar | a9537d2 | 2014-08-29 10:04:47 +0200 | [diff] [blame] | 10 | |
| 11 | To add a new test: |
| 12 | 1) Create test_<subject>.in and test_<subject>.ok files. |
| 13 | 2) 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). |
| 15 | 3) Use make test_<subject>.out to run a single test file in src/testdir/. |
| 16 | 4) Also add an entry in src/Makefile. |
| 17 | |
| 18 | Keep in mind that the files are used as if everything was typed. |
| 19 | A line break is like pressing Enter. If that happens on the last line you'll |
| 20 | hear a beep. |