neovim/test/functional/ex_cmds
Justin M. Keyes 2afbce7651
refactor(tests): remove redir_exec #15718
Problem
- `redir_exec` is obsolete, but it keeps getting used in new tests
  because people copy existing tests.
- Disadvantages of `redir_exec`:
  - Captures extra junk before the actual error/message that we _want_ to test.
  - Does not fail on error, unlike e.g. `command()`.

Solution
- Use new functions like `nvim_exec` and `pcall_err`.
2021-09-19 02:29:37 -07:00
..
append_spec.lua build: Target luacheck HEAD. 2016-11-17 00:55:39 +01:00
arg_spec.lua tests: AppVeyor: fix test/functional/ex_cmds/arg_spec.lua (#10598) 2019-07-24 09:31:46 +02:00
cd_spec.lua options: properly reset directories on 'autochdir' (#9894) 2019-04-13 12:50:36 +02:00
cmd_map_spec.lua screen: don't unconditionally clear messages on window scroll 2019-01-15 19:48:49 +01:00
ctrl_c_spec.lua test: isCI(): add "name" parameter 2019-08-05 04:02:41 +02:00
debug_spec.lua fixup: 30 col resize to scroll debug 2018-12-01 01:56:22 -05:00
dict_notifications_spec.lua refactor(tests): use assert_alive() #15546 2021-09-01 09:42:53 -07:00
digraphs_spec.lua tests: fix flaky ':digraphs displays digraphs' (#10406) 2019-07-04 15:22:59 +02:00
drop_spec.lua feat(defaults): set hidden 2021-08-17 16:38:39 -06:00
echo_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
edit_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
encoding_spec.lua options: make 'highlight' read-only 2017-05-15 07:22:31 +02:00
excmd_spec.lua vim-patch:8.1.0105: all tab stops are the same 2021-03-28 08:37:01 +01:00
file_spec.lua test: :file {name} 2017-04-11 00:39:12 +02:00
grep_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
help_spec.lua tests: use runtime from build for doc/tags with :help (#10479) 2019-08-28 22:47:54 +02:00
highlight_spec.lua tests/ui: remove unnecessary screen:detach() 2019-10-13 22:10:42 +02:00
ls_spec.lua vim-patch:8.0.1651: cannot filter :ls output for terminal buffers 2020-04-19 20:18:41 +01:00
make_spec.lua doc(options): Fix recommended PowerShell config (#14349) 2021-07-02 08:15:40 -04:00
map_spec.lua os/input.c: parse keycodes in non-string context #7411 2018-01-18 01:37:51 +01:00
menu_spec.lua tests: use vim.inspect (#10485) 2019-07-13 00:50:52 +02:00
mksession_spec.lua vim-patch:8.1.0829: when 'hidden' is set session creates extra buffers 2021-07-17 16:12:49 +01:00
mkview_spec.lua test: robust cleanup, unique filenames #7950 (#7950) 2018-02-01 03:12:37 +01:00
oldfiles_spec.lua A Mudholland Dr. Recast 2020-10-19 21:48:06 +02:00
print_commands_spec.lua ex_cmds.c: Fix bug in ex_z (#6557) 2017-04-21 15:45:51 +02:00
profile_spec.lua test: add more profile tests 2020-05-10 03:16:30 +09:00
quickfix_commands_spec.lua test: update tests to work with 'hidden' 2021-08-18 12:17:12 -06:00
quit_spec.lua build: Target luacheck HEAD. 2016-11-17 00:55:39 +01:00
script_spec.lua API: deprecate nvim_command_output 2019-12-02 20:52:06 -08:00
sign_spec.lua API: deprecate nvim_command_output 2019-12-02 20:52:06 -08:00
source_spec.lua fix(:source): copy curbuf lines to memory before sourcing #15111 2021-09-15 05:17:07 -07:00
swapfile_preserve_recover_spec.lua refactor(tests): use assert_alive() #15546 2021-09-01 09:42:53 -07:00
syntax_spec.lua coverity/56795: Fix NULL dereference in :syn keyword non-printable 2017-04-09 23:38:05 +03:00
undojoin_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
write_spec.lua refactor(tests): remove redir_exec #15718 2021-09-19 02:29:37 -07:00
wundo_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
wviminfo_spec.lua test: clear(): args_rm parameter 2019-04-27 16:19:40 +02:00