0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.1.2087: cannot easily select one test function to execute

Problem:    Cannot easily select one test function to execute.
Solution:   Support the $TEST_FILTER environment variable. (Ozaki Kiichi,
            closes #2695)
This commit is contained in:
Bram Moolenaar
2019-09-27 15:34:16 +02:00
parent 38f1eeac3d
commit a7f6c3cf07
4 changed files with 17 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ if 1
let g:failed += a:match+0
elseif a:type ==# 'skipped'
let g:skipped += 1
call extend(g:skipped_output, ["\t".a:match])
call extend(g:skipped_output, ["\t" .. a:match])
endif
endfunc
@@ -19,6 +19,10 @@ if 1
let g:failed_output = []
let output = [""]
if $TEST_FILTER != ''
call extend(g:skipped_output, ["\tAll tests not matching $TEST_FILTER: '" .. $TEST_FILTER .. "'"])
endif
try
" This uses the :s command to just fetch and process the output of the
" tests, it doesn't actually replace anything.