Mercurial > vim
comparison src/testdir/runtest.vim @ 16951:ebdf6cd89910 v8.1.1476
patch 8.1.1476: no statistics displayed after running tests
commit https://github.com/vim/vim/commit/9c0cec65f891492314caadeef87a50251a21e630
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 13:38:15 2019 +0200
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 https://github.com/vim/vim/issues/4391)
Also make it possible to report a skipped file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 13:45:05 +0200 |
parents | 857ce36c8412 |
children | 586d625e21b4 |
comparison
equal
deleted
inserted
replaced
16950:a8735038f8d5 | 16951:ebdf6cd89910 |
---|---|
266 " this test has intentional s:errors, don't use try/catch. | 266 " this test has intentional s:errors, don't use try/catch. |
267 source % | 267 source % |
268 else | 268 else |
269 try | 269 try |
270 source % | 270 source % |
271 catch /^\cskipped/ | |
272 call add(s:messages, ' Skipped') | |
273 call add(s:skipped, 'SKIPPED ' . expand('%') . ': ' . substitute(v:exception, '^\S*\s\+', '', '')) | |
271 catch | 274 catch |
272 let s:fail += 1 | 275 let s:fail += 1 |
273 call add(s:errors, 'Caught exception: ' . v:exception . ' @ ' . v:throwpoint) | 276 call add(s:errors, 'Caught exception: ' . v:exception . ' @ ' . v:throwpoint) |
274 endtry | 277 endtry |
275 endif | 278 endif |