From 9c0cec65f891492314caadeef87a50251a21e630 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 6 Jun 2019 13:38:15 +0200 Subject: patch 8.1.1476: no statistics displayed after running tests 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. --- src/testdir/runtest.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/testdir/runtest.vim') diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 2a1b5ea5cc..02d4d20e34 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) -- cgit v1.2.3