Mercurial > vim
diff src/testdir/README.txt @ 10100:26441931dad7 v7.4.2321
commit https://github.com/vim/vim/commit/dac1947bb366ef43cd6da95acc730554e76d8b84
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 3 22:35:40 2016 +0200
patch 7.4.2321
Problem: When a test is commented out we forget about it.
Solution: Let a test throw an exception with "Skipped" and list skipped test
functions. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Sep 2016 22:45:06 +0200 |
parents | 3ee84d270ea7 |
children | 055b1633aed7 |
line wrap: on
line diff
--- a/src/testdir/README.txt +++ b/src/testdir/README.txt @@ -20,7 +20,7 @@ 3) Use make test_<subject>.res to run a 4) Also add an entry in src/Makefile. What you can use (see test_assert.vim for an example): -- Call assert_equal(), assert_true() and assert_false(). +- Call assert_equal(), assert_true(), assert_false(), etc. - Use try/catch to check for exceptions. - Use alloc_fail() to have memory allocation fail. This makes it possible to check memory allocation failures are handled gracefully. You need to @@ -29,6 +29,9 @@ What you can use (see test_assert.vim fo - Use disable_char_avail_for_testing(1) if char_avail() must return FALSE for a while. E.g. to trigger the CursorMovedI autocommand event. See test_cursor_func.vim for an example +- If the bug that is being tested isn't fixed yet, you can throw an exception + so that it's clear this still needs work. E.g.: + throw "Skipped: Bug with <c-e> and popupmenu not fixed yet" - See the start of runtest.vim for more help.