diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-06 13:38:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-06 13:38:15 +0200 |
commit | 9c0cec65f891492314caadeef87a50251a21e630 (patch) | |
tree | ccf15ae17380248ffc511f53bf3e1dceb40bb628 /src/testdir/runtest.vim | |
parent | db294adc65d73ffa5cdf3d0ab45ccbf05b965414 (diff) | |
download | vim-git-9c0cec65f891492314caadeef87a50251a21e630.tar.gz |
patch 8.1.1476: no statistics displayed after running testsv8.1.1476
Problem: No statistics displayed after running tests.
Solution: Summarize the test results. (Christian Brabandt, closes #4391)
Also make it possible to report a skipped file.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 2a1b5ea5c..02d4d20e3 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -268,6 +268,9 @@ if expand('%') =~ 'test_vimscript.vim' else try source % + catch /^\cskipped/ + call add(s:messages, ' Skipped') + call add(s:skipped, 'SKIPPED ' . expand('%') . ': ' . substitute(v:exception, '^\S*\s\+', '', '')) catch let s:fail += 1 call add(s:errors, 'Caught exception: ' . v:exception . ' @ ' . v:throwpoint) |