summaryrefslogtreecommitdiffstats
path: root/src/testdir/README.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-03 22:35:40 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-03 22:35:40 +0200
commitdac1947bb366ef43cd6da95acc730554e76d8b84 (patch)
treed6959ff23939dfa6e68f8618694efb617c59f2e3 /src/testdir/README.txt
parentdda933d06c06c2792bd686d059f6ad19191ad30b (diff)
patch 7.4.2321v7.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)
Diffstat (limited to 'src/testdir/README.txt')
-rw-r--r--src/testdir/README.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/README.txt b/src/testdir/README.txt
index 3b2e101c8f..640c61d1bd 100644
--- a/src/testdir/README.txt
+++ b/src/testdir/README.txt
@@ -20,7 +20,7 @@ TO ADD A NEW STYLE TEST:
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 for an example):
- 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.