aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
Commit message (Collapse)AuthorAge
...
* test: Lua 5.2/5.3 compatMatěj Cepl2019-01-17
| | | | | close #9515 ref #9280
* multigrid: add multigrid support to test infrastructureBjörn Linse2018-12-31
| | | | make Screen explicitly tied to its session
* test: check_cores(): Fix tmp dir exclusion (#9061)Justin M. Keyes2018-09-28
| | | | | | | | | | | | | tmpdir_get() may be an absolute path, but we invoke glob() with a relative `initial_path`. That can lead to this error: [ ERROR ] test/functional/helpers.lua @ 752: after_each test/helpers.lua:95: cannot open ./Xtest-tmpdir/nvim8jKCjR: No such file or directory stack traceback: test/helpers.lua:95: in function 'glob' test/helpers.lua:273: in function 'check_cores' test/functional/helpers.lua:757: in function <test/functional/helpers.lua:752>
* test: Do not load entire log-file into memoryJustin M. Keyes2018-09-23
| | | | With DEBUG-level logging, after `make test`, log file could be 1+ GB.
* test: Dump $NVIM_LOG_FILE contents (#8926)Justin M. Keyes2018-08-28
| | | | | | Do this at the test-framework level instead of CI (Travis) scripts. Then it works for QuickBuild and AppVeyor. ref eb6dd3e42dc38460e8624dc5faef894e21c6aa26
* tests: introduce screen:expect{...} formBjörn Linse2018-08-27
|
* system(): handle profiling and 'verbose' #8730Marcos Almeida2018-07-29
| | | | | | | | | | | | closes #8362 Vim's code calls `call_shell` directly from `get_system_output_as_rettv` whereas in Nvim this function has been rewritten to not call `call_shell` but to call `os_system` via `do_os_system`, losing the support for profiling and verbose. Changing the code to call `call_shell` from `get_system_output_as_rettv` seems to be too complicated to be worth it on the current version of the code. So this commit duplicates the relevant code.
* fixup: exclude node_modules/ for crash detectionJan Edmund Lazo2018-06-05
| | | | node.js client uses lodash which has core.js.
* test/util: move general functions into global helpersJustin M. Keyes2018-04-27
|
* Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
|\
| * test/util: expect_err() (#8257)Justin M. Keyes2018-04-11
| | | | | | other cleanup, ref #8245
| * test/util: matches()Justin M. Keyes2018-04-11
| |
| * test/helpers: Support booleansZyX2018-03-27
| |
| * test/util: remove eq_any()Justin M. Keyes2018-02-18
| | | | | | | | | | | | It was added in the parent commit, but ended up not being used. And I can't think of a case where it will be used: instead we would probably want to generalize expect_msg_seq() if necessary.
| * test/util: expect_msg_seq()Justin M. Keyes2018-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | job_spec.lua on AppVeyor (Windows) often fails like this: FAILED ] C:/projects/neovim/test/functional\core\job_spec.lua @ 72: jobs changes to given `cwd` directory C:/projects/neovim/test/functional\core\job_spec.lua:81: Expected objects to be the same. Passed in: (table) { [1] = 'notification' [2] = 'stdout' *[3] = { [1] = 0 *[2] = { [1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0' } } } Expected: (table) { [1] = 'notification' [2] = 'stdout' *[3] = { [1] = 0 *[2] = { [1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0' *[2] = '' } } } stack traceback: Message chunking is non-deterministic, so we need to try different variants.
| * lintJames McCoy2018-02-03
| |
| * tests: Make format_string('%q', ...) output more stableZyX2018-02-02
| | | | | | It appears to be different on lua and luajit.
| * tests: Fix linter errorsZyX2017-12-03
| |
| * Merge branch 'master' into expression-parserZyX2017-11-26
| |\
| * | tests: Stabilize float format and %e in format_luav and format_stringZyX2017-11-19
| | |
| * | *: Fix linter errorsZyX2017-11-19
| | |
| * | unittests,viml/parser/expressions: Start adding asgn parsing testsZyX2017-11-13
| | |
| * | unittests: Fix automatic test case generationZyX2017-11-13
| | |
| * | *: Fix linter errorsZyX2017-11-06
| | |
| * | unittests: Add tests for vim_str2nrZyX2017-11-06
| | |
| * | tests: Add missing test casesZyX2017-11-06
| | |
| * | api/vim,functests: Add tests for nvim_parse_expression, fix found bugsZyX2017-11-06
| | |
| * | tests: Fix testlint errorsZyX2017-11-06
| | |
| * | viml/parser/expressions,tests: Add AST freeing, with sanity checksZyX2017-10-15
| | |
| * | viml/parser/expressions: Create tests for latest additionsZyX2017-10-15
| | |
| * | viml/parser/expressions: Add support for string parsingZyX2017-10-15
| | |
| * | test/helpers: Add format_string and format_luavZyX2017-09-29
| | | | | | | | | | | | | | | First intended to provide %r functionality like in Python (and also support for %*.*s, but this was not checked), second adds nice table formatting for use in cases similar to screen:snapshot_util().
* | | Merge branch 'master' into s-dash-stdinZyX2017-12-03
|\ \ \ | | |/ | |/|
| * | core dumps: don't use pipe, it does not workBjörn Linse2017-11-25
| |/
| * functests: Add testsZyX2017-06-21
| |
| * Merge branch 'master' into luaviml'/luaZyX2017-05-08
| |\
| | * test: check_cores(): Escape $TMPDIR path. (#6520)Justin M. Keyes2017-04-14
| | | | | | | | | | | | | | | | | | Lua string:match() considers hyphen to be a special char, we want the path to be a literal match. Also remove "./", etc. References #6483
| * | Merge branch 'master' into luaviml'/luaZyX2017-04-10
| |\|
| | * test/check_cores(): Skip workspace-local temp dir. (#6483)Justin M. Keyes2017-04-09
| | | | | | | | | | | | | | | | | | | | | | | | Avoids this error: ./test/helpers.lua:27: cannot open ./Xtest-tmpdir/nvimfqH9dL: No such file or directory stack traceback: ./test/helpers.lua:27: in function 'glob' ./test/helpers.lua:195: in function 'check_cores' ./test/functional/helpers.lua:628: in function <./test/functional/helpers.lua:626>
| | * unittests: Move checking cores to check_child_errZyX2017-04-08
| | |
| * | Merge branch 'master' into luaviml'/luaZyX2017-04-08
| |\|
| | * unittests: Add trace description right to the error messageZyX2017-04-01
| | |
| | * test: Use workspace-local temp directory.Justin M. Keyes2017-03-30
| | | | | | | | | | | | Closes #6291
| | * unittests: Add tv_dict_item_{alloc,free} testsZyX2017-03-29
| | |
| * | functests: Add some testsZyX2017-03-27
| |/
* | tests: Fix repeated_popen_r usage, rename the functionZyX2017-03-19
| |
* | tests: Fix CI failuresZyX2017-03-19
| |
* | functests: Check that `-s` works as expectedZyX2017-03-19
|/
* tests: Allow lfs.attributes to be NULL when traversing FSZyX2017-03-12
|
* unittests: Do not use which, add data to paths.lua.in insteadZyX2017-03-11
|