| 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. | ||
| * | functests: Check logs in lua code | ZyX | 2016-06-10 |
| | | | | | | | It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail. | ||
| * | test/functional: clean up according to luacheck (part 2) | Marco Hinz | 2015-11-23 |
| | | |||
| * | legacy tests: migrate test56 | Rainer Borene | 2014-11-04 |