mirror of
https://github.com/neovim/neovim.git
synced 2026-01-25 14:16:04 +00:00
@@ -319,6 +319,12 @@ if argc() > 1
|
||||
let s:tests = filter(s:tests, 'v:val =~ argv(1)')
|
||||
endif
|
||||
|
||||
" If the environment variable $TEST_FILTER is set then filter the function
|
||||
" names against it.
|
||||
if $TEST_FILTER != ''
|
||||
let s:tests = filter(s:tests, 'v:val =~ $TEST_FILTER')
|
||||
endif
|
||||
|
||||
" Execute the tests in alphabetical order.
|
||||
for s:test in sort(s:tests)
|
||||
" Silence, please!
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
if 1
|
||||
" This is executed only with the eval feature
|
||||
set nocompatible
|
||||
set viminfo=
|
||||
func Count(match, type)
|
||||
if a:type ==# 'executed'
|
||||
let g:executed += (a:match+0)
|
||||
@@ -8,7 +9,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 +20,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.
|
||||
|
||||
Reference in New Issue
Block a user