diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-27 15:34:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-27 15:34:16 +0200 |
commit | a7f6c3cf071bb6267e0bd2eb3d27ca240381ba87 (patch) | |
tree | c0605ca553ec25907e3a6ddca6f5de1e425ef312 /src/testdir/summarize.vim | |
parent | 38f1eeac3d8ec0a0e275213a62ba7ff1afb8ab33 (diff) | |
download | vim-git-a7f6c3cf071bb6267e0bd2eb3d27ca240381ba87.tar.gz |
patch 8.1.2087: cannot easily select one test function to executev8.1.2087
Problem: Cannot easily select one test function to execute.
Solution: Support the $TEST_FILTER environment variable. (Ozaki Kiichi,
closes #2695)
Diffstat (limited to 'src/testdir/summarize.vim')
-rw-r--r-- | src/testdir/summarize.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/summarize.vim b/src/testdir/summarize.vim index 5bbf0b338..9cf3f694c 100644 --- a/src/testdir/summarize.vim +++ b/src/testdir/summarize.vim @@ -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. |