summaryrefslogtreecommitdiffstats
path: root/runtime/doc/testing.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-11 20:42:19 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-11 20:42:19 +0200
commitf7c4d83609acdfe0e4d0fec9413697ac97c0c3f9 (patch)
tree7872b2cb248f6e0bd9624bee8a0885185d9e82e1 /runtime/doc/testing.txt
parent59eccb92e3c68f65525e08d2113213ff7d7ed00a (diff)
patch 8.2.1420: test 49 is old stylev8.2.1420
Problem: Test 49 is old style. Solution: Convert remaining parts to new style. Remove obsolete items. (Yegappan Lakshmanan, closes #6683)
Diffstat (limited to 'runtime/doc/testing.txt')
-rw-r--r--runtime/doc/testing.txt15
1 files changed, 4 insertions, 11 deletions
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt
index f1173a1f0b..1147673d59 100644
--- a/runtime/doc/testing.txt
+++ b/runtime/doc/testing.txt
@@ -20,18 +20,11 @@ and for testing plugins.
Vim can be tested after building it, usually with "make test".
The tests are located in the directory "src/testdir".
-There are several types of tests added over time:
- test33.in oldest, don't add any of these
- test_something.in old style tests
- test_something.vim new style tests
-
*new-style-testing*
-New tests should be added as new style tests. These use functions such as
-|assert_equal()| to keep the test commands and the expected result in one
-place.
- *old-style-testing*
-In some cases an old style test needs to be used. E.g. when testing Vim
-without the |+eval| feature.
+New tests should be added as new style tests. The test scripts are named
+test_<feature>.vim (replace <feature> with the feature under test). These use
+functions such as |assert_equal()| to keep the test commands and the expected
+result in one place.
Find more information in the file src/testdir/README.txt.