| Commit message (Collapse) | Author | Age | |
|---|---|---|---|
| * | test(harness): migrate away from magic globals | Justin M. Keyes | 2026-07-21 |
| | | | | | | | | | | | | | | | | | | | | | | Problem: The magic globals `it`, `describe`, etc., are more trouble than they are worth. - Hooking into `after_each` requires `getfenv()` hacks. - They confuse luals/emmylua, because the top-level `.luarc.json` isn't merged with `test/.luarc.json` (apparently a luals limitation?) - They totally defeat discoverability because the user just has to "know" about the various magic symbols. So they harm DX, which means they serve no purpose at all. Solution: - Expose the test API from `testutil`, so tests can call `t.it()`, `t.describe()`, etc., in the conventional way. - Drop `getfenv()` hacks. - Drop the `setfenv()` injection in `load_chunk`. - Drop `test/_meta.lua`. | ||
| * | test: improve test conventions | dundargoc | 2024-04-23 |
| | | | | | | | | | | Specifically, functions that are run in the context of the test runner are put in module `test/testutil.lua` while the functions that are run in the context of the test session are put in `test/functional/testnvim.lua`. Closes https://github.com/neovim/neovim/issues/27004. | ||
| * | refactor(test): inject after_each differently | Lewis Russell | 2024-04-10 |
| | | |||
| * | test: improve test conventions | dundargoc | 2024-04-08 |
| | | | | | Work on https://github.com/neovim/neovim/issues/27004. | ||
| * | test: rename (meths, funcs) -> (api, fn) | Lewis Russell | 2024-01-12 |
| | | |||
| * | refactor: format test/* | Justin M. Keyes | 2024-01-03 |
| | | |||
| * | feat: allow :wincmd to accept a count (#19815) | Famiu Haque | 2022-08-17 |
| Let :wincmd command accept a count like what its documentation suggests. Previously it could only accept a range, which led to some ambiguity on which attribute should be used when executing :wincmd using nvim_cmd. Closes #19662. Also fix a typo in a related Vim test: vim-patch:9.0.0223: typo in diffmode test Problem: Typo in diffmode test. Solution: Fix the typo. (closes vim/vim#10932) https://github.com/vim/vim/commit/5fd6ab820b4a0aaa5c6020852f39d118375fab49 | |||