Mercurial > vim
comparison src/testdir/summarize.vim @ 20980:a51ce93f3e6c v8.2.1041
patch 8.2.1041: test summary is missing executed count
Commit: https://github.com/vim/vim/commit/7eaafe65eef88493c789b160914c8e2e8e42d4a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 22 22:10:06 2020 +0200
patch 8.2.1041: test summary is missing executed count
Problem: Test summary is missing executed count.
Solution: Adjust pattern used for counting.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Jun 2020 22:15:03 +0200 |
parents | c77d7a415e59 |
children | 483dc3fd596c |
comparison
equal
deleted
inserted
replaced
20979:7bc2d55a77dc | 20980:a51ce93f3e6c |
---|---|
26 | 26 |
27 try | 27 try |
28 " This uses the :s command to just fetch and process the output of the | 28 " This uses the :s command to just fetch and process the output of the |
29 " tests, it doesn't actually replace anything. | 29 " tests, it doesn't actually replace anything. |
30 " And it uses "silent" to avoid reporting the number of matches. | 30 " And it uses "silent" to avoid reporting the number of matches. |
31 silent %s/^Executed\s\+\zs\d\+\ze\s\+tests\?/\=Count(submatch(0),'executed')/egn | 31 silent %s/Executed\s\+\zs\d\+\ze\s\+tests\?/\=Count(submatch(0),'executed')/egn |
32 silent %s/^SKIPPED \zs.*/\=Count(submatch(0), 'skipped')/egn | 32 silent %s/^SKIPPED \zs.*/\=Count(submatch(0), 'skipped')/egn |
33 silent %s/^\(\d\+\)\s\+FAILED:/\=Count(submatch(1), 'failed')/egn | 33 silent %s/^\(\d\+\)\s\+FAILED:/\=Count(submatch(1), 'failed')/egn |
34 | 34 |
35 call extend(output, ["Skipped:"]) | 35 call extend(output, ["Skipped:"]) |
36 call extend(output, skipped_output) | 36 call extend(output, skipped_output) |