comparison src/testdir/summarize.vim @ 17901:14122cb0ea3d v8.1.1947

patch 8.1.1947: when executing one test the report doesn't show it Commit: https://github.com/vim/vim/commit/60b1bcfe92da1d7b8f894c91192f3a76e8aec391 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 30 19:05:32 2019 +0200 patch 8.1.1947: when executing one test the report doesn't show it Problem: When executing one test the report doesn't show it. Solution: Adjust the regexp. (Daniel Hahler, closes https://github.com/vim/vim/issues/4879)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Aug 2019 19:15:03 +0200
parents 7f95fa061abc
children ef35a3a70c24
comparison
equal deleted inserted replaced
17900:339e5151fe57 17901:14122cb0ea3d
19 let g:failed_output = [] 19 let g:failed_output = []
20 let output = [""] 20 let output = [""]
21 21
22 try 22 try
23 " This uses the :s command to just fetch and process the output of the 23 " This uses the :s command to just fetch and process the output of the
24 " tests, it doesn't acutally replace anything. 24 " tests, it doesn't actually replace anything.
25 " And it uses "silent" to avoid reporting the number of matches. 25 " And it uses "silent" to avoid reporting the number of matches.
26 silent %s/^Executed\s\+\zs\d\+\ze\s\+tests/\=Count(submatch(0),'executed')/egn 26 silent %s/^Executed\s\+\zs\d\+\ze\s\+tests\?/\=Count(submatch(0),'executed')/egn
27 silent %s/^SKIPPED \zs.*/\=Count(submatch(0), 'skipped')/egn 27 silent %s/^SKIPPED \zs.*/\=Count(submatch(0), 'skipped')/egn
28 silent %s/^\(\d\+\)\s\+FAILED:/\=Count(submatch(1), 'failed')/egn 28 silent %s/^\(\d\+\)\s\+FAILED:/\=Count(submatch(1), 'failed')/egn
29 29
30 call extend(output, ["Skipped:"]) 30 call extend(output, ["Skipped:"])
31 call extend(output, skipped_output) 31 call extend(output, skipped_output)