neovim/test/functional/vimscript
Justin M. Keyes 8f06520594 feat(logging): include test-id in log messages
Problem:
1. Log messages (especially in CI) are hard to correlate with tests.
2. Since b353a5c05f #11886, dumplog() prints the logs next to test
   failures. This is noisy and gets in the way of the test results.

Solution:
1. Associate an incrementing id with each test and include it in log
   messages.
    - FUTURE: add v:name so Nvim instances can be formally "named"?
2. Mention "child" in log messages if the current Nvim is a child (based
   on the presence of $NVIM).

BEFORE:

    DBG … 12345      UI: event
    DBG … 12345      log_server_msg:722: RPC ->ch 1: …
    DBG … 12345      UI: flush
    DBG … 12345      inbuf_poll:444: blocking... events_enabled=1 events_pending=0
    DBG … 23454      UI: stop
    INF … 23454      os_exit:594: Nvim exit: 0

AFTER:

    DBG … T57        UI: event
    DBG … T57        log_server_msg:722: RPC ->ch 1: …
    DBG … T57        UI: flush
    DBG … T57        inbuf_poll:444: blocking... events_enabled=1 events_pending=0
    DBG … T57/child  UI: stop
    INF … T57/child  os_exit:594: Nvim exit: 0
2022-06-15 19:23:10 -07:00
..
api_functions_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
buf_functions_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
changedtick_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
container_functions_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
ctx_functions_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
environ_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
errorlist_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
eval_spec.lua vim-patch:8.2.3917: the eval.txt help file is way too big 2022-01-29 15:19:29 -05:00
executable_spec.lua fix(eval): checking for a non-empty string is too strict (#15987) 2021-10-28 22:13:40 -04:00
execute_spec.lua fix(tests): fix some screen.lua warnings 2022-05-21 23:07:34 +02:00
exepath_spec.lua fix(eval): checking for a non-empty string is too strict (#15987) 2021-10-28 22:13:40 -04:00
fnamemodify_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
functions_spec.lua vim-patch:8.2.3917: the eval.txt help file is way too big 2022-01-29 15:19:29 -05:00
getline_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
glob_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
has_spec.lua fix: has() should preserve v:shell_error #18280 2022-04-26 20:58:25 -07:00
hostname_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
input_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
json_functions_spec.lua feat(eval/method): partially port v8.1.1954 2021-10-03 20:06:33 +01:00
lang_spec.lua feat(test): use nvim_exec in helpers.source() #16064 2022-03-27 10:25:55 -07:00
let_spec.lua feat(logging): include test-id in log messages 2022-06-15 19:23:10 -07:00
map_functions_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
match_functions_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
minmax_functions_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
modeline_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
msgpack_functions_spec.lua fix(ci): workaround bug in msgpackparse() on windows caused by api level bump 2022-04-25 16:30:20 +02:00
null_spec.lua fix(eval): checking for a non-empty string is too strict (#15987) 2021-10-28 22:13:40 -04:00
operators_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
printf_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
reltime_spec.lua test: correct order of arguments to eq() and neq() 2022-04-26 11:38:58 +08:00
screenpos_spec.lua fix(screenpos, float): add top and left border adjustment 2021-12-15 22:40:10 +08:00
server_spec.lua feat(server): set $NVIM, unset $NVIM_LISTEN_ADDRESS #11009 2022-05-03 06:08:35 -07:00
setpos_spec.lua test: correct order of arguments to eq() and neq() 2022-04-26 11:38:58 +08:00
sort_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
special_vars_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
string_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
system_spec.lua fix(input): only disable mapped CTRL-C interrupts when getting input (#18310) 2022-04-30 13:11:35 +08:00
timer_spec.lua fix(event-loop): duplicate display updating logic in vgetorpeek() (#17913) 2022-03-30 05:25:00 +08:00
uniq_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
vvar_event_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
wait_spec.lua test: reorg #15698 2021-09-17 09:16:40 -07:00
writefile_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00