Mercurial > vim
comparison runtime/doc/testing.txt @ 21741:baccf9e06efe v8.2.1420
patch 8.2.1420: test 49 is old style
Commit: https://github.com/vim/vim/commit/f7c4d83609acdfe0e4d0fec9413697ac97c0c3f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 11 20:42:19 2020 +0200
patch 8.2.1420: test 49 is old style
Problem: Test 49 is old style.
Solution: Convert remaining parts to new style. Remove obsolete items.
(Yegappan Lakshmanan, closes #6683)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Aug 2020 20:45:05 +0200 |
parents | 3a1ed539ae2a |
children | 30bdd2e4a6f9 |
comparison
equal
deleted
inserted
replaced
21740:54928f1c0d20 | 21741:baccf9e06efe |
---|---|
18 1. Testing Vim *testing* | 18 1. Testing Vim *testing* |
19 | 19 |
20 Vim can be tested after building it, usually with "make test". | 20 Vim can be tested after building it, usually with "make test". |
21 The tests are located in the directory "src/testdir". | 21 The tests are located in the directory "src/testdir". |
22 | 22 |
23 There are several types of tests added over time: | |
24 test33.in oldest, don't add any of these | |
25 test_something.in old style tests | |
26 test_something.vim new style tests | |
27 | |
28 *new-style-testing* | 23 *new-style-testing* |
29 New tests should be added as new style tests. These use functions such as | 24 New tests should be added as new style tests. The test scripts are named |
30 |assert_equal()| to keep the test commands and the expected result in one | 25 test_<feature>.vim (replace <feature> with the feature under test). These use |
31 place. | 26 functions such as |assert_equal()| to keep the test commands and the expected |
32 *old-style-testing* | 27 result in one place. |
33 In some cases an old style test needs to be used. E.g. when testing Vim | |
34 without the |+eval| feature. | |
35 | 28 |
36 Find more information in the file src/testdir/README.txt. | 29 Find more information in the file src/testdir/README.txt. |
37 | 30 |
38 ============================================================================== | 31 ============================================================================== |
39 2. Test functions *test-functions-details* | 32 2. Test functions *test-functions-details* |