summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/ex_cmds/cd_spec.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-20refactor(test): drop deprecated exc_exec #39242Justin M. Keyes1
2026-01-31test: add reasons to some skipped tests (#37632)zeertzjq1
2024-04-23test: improve test conventionsdundargoc1
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.
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2024-01-12test: use vim.mpack and vim.uv directlyLewis Russell1
2024-01-03refactor: format test/*Justin M. Keyes1
2023-04-04test: replace lfs with luv and vim.fsdundargoc1
test: replace lfs with luv luv already pretty much does everything lfs does, so this duplication of dependencies isn't needed.
2022-11-22test: simplify platform detection (#21020)dundargoc1
Extend the capabilities of is_os to detect more platforms such as freebsd and openbsd. Also remove `iswin()` helper function as it can be replaced by `is_os("win")`.
2022-11-13test: introduce skip() #21010dundargoc1
This is essentially a convenience wrapper around the `pending()` function, similar to `skip_fragile()` but more general-purpose. Also remove `pending_win32` function as it can be replaced by `skip(iswin())`.
2022-04-15docs: typo fixes (#17859)dundargoc1
Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-11-19vim-patch:8.2.3618: getcwd() is unclear about how 'autochdir' is usedzeertzjq1
Problem: getcwd() is unclear about how 'autochdir' is used. Solution: Update the help for getcwd(). Without any arguments always return the actual current directory. (closes vim/vim#9142) https://github.com/vim/vim/commit/851c7a699ae00bdc14a4db874cf722b7b7393b53
2019-04-13options: properly reset directories on 'autochdir' (#9894)Marco Hinz1
Fixes https://github.com/neovim/neovim/issues/9892
2018-02-19Resolve issues mentioned in PR reviewJan Edmund Lazo1
2018-02-19test: enable ex_cmds/cd_spec.lua on WindowsJan Edmund Lazo1
2017-04-09functests: Replace execute with either command or feed_commandZyX1
Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed.
2016-09-12CI: test: Avoid QuickBuild hang. (#5330)Justin M. Keyes1
Delete the CWD using nvim instead of the external lua/test runner process.
2016-09-04getcwd(): Return empty string if CWD is invalid. #5292HiPhish1
Closes #5291 Restores behaviour identical to Vim. If the user calls the VimScript function 'getcwd()' and the working directory cannot be found (for example because the directory has been deleted since the last time it was used) an empty string needs to be returned instead of throwing an error.
2016-09-04tchdir: New tab should inherit CWD. (#5227)Alejandro Sanchez1
When a new tabpage gets created it will copy the local working directory of the previous one, if there is any.
2016-08-26Mark some functional tests as pending in WindowsRui Abreu Ferreira1
2016-06-10functests: Check logs in lua codeZyX1
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.
2016-06-01test/functional: cd_spec: Add tests for {getcwd,haslocaldir}(-1, -1)James McCoy1
2016-06-01test/functional: cd_spec: Add tests for using explicit argsJames McCoy1
2016-06-01test/functional: cd_spec: Use named keys for directories tableJames McCoy1
The directories table contains the names of the expected directory names for varying scopes of the :cd tests. Using named indexes, instead of numbered, makes the test more readable.
2016-06-01test/functional: Allow arbitrary arguments to cwd/lwd functionsJames McCoy1
Build wcwd/tcwd and wlwd/tlwd on top of the reworked cwd/lwd functions. This will allow for easier testing of `getcwd()`/`haslocaldir()` in arbitrary windows and/or tab pages.
2016-05-06test/functional: fix a dependency on the previous test suiteJohn Szakmeister1
While trying to debug an issue, I discovered that the tests for illegal arguments depended on the prior suite having run and started a session. Let's remove that unintentional dependency by starting our own session before each test.
2016-05-06test/functional: prefix the cd command with silent to prevent hangingJohn Szakmeister1
In longer directory paths, the test can hang waiting for the user to hit enter to continue. Let's use the silent prefix to avoid this.
2016-04-28Satisfy testlint.KillTheMule1
For that, make luatest ignore the preload.lua files.
2016-04-21tcd: doc, error messagesJustin M. Keyes1
2016-04-20Implement tab-local working directory feature.HiPhish1
New ex commands: 'tcd', 'tchdir' Changed Vimscript functions: 'haslocaldir', 'getcwd' The ex-commands ':tcd' and ':tchdir' are the tab-local equivalents of ':lcd' and ':lchdir'. There are no new Vimscript functions introduced, instead the functions 'haslocaldir' and 'getcwd' take in optional arguments. See the documentation for details Since there is now different levels of local directory a simple boolean at source level is no longer sufficient; a new enumeration type is used for the scope-level from now on. The documentation has been accommodated for these new commands and functional tests have been written to test the feature.