Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | legacy tests: migrate test5 | Rainer Borene | 2014-11-20 | |
| | ||||
* | test: Improve test environment setup and error handling/reporting | Thiago de Arruda | 2014-11-07 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | During test setup, we used to call a vimscript function(BeforeEachTest) that attempted to restore Nvim to it's initial state as much as possible in order to provide a clean environment for running new tests. This approach has proven to be unreliable, as some tests leave state that can affect other tests, eventually causing failures that are difficult to debug. This commit changes the 'clear' function so it will restart Nvim every time it is called, which is a slower, but more reliable solution that will simplify spotting bugs in the future. Some other improvements/fixes were also performed: - Whenever an error is detected in a handler passed to "run()", the event loop will be stopped and the error will be propagated to the main thread. - Errors and the "cleanup()" function will always send a quit command to the current Nvim instance. This should prevent memory starvation when running tests under valgrind(where each Nvim instance can consume a lot of memory). - Fixed a wrong assertion in server_requests_spec.lua. Previously the failure was undetected in a notification handler. - Fixed some tests to expect fully clean registers. The deleted cleanup function used to put an empty string in every register, but that resulted in a extra line being added. | |||
* | test: Simplify/fix options_spec.lua | Thiago de Arruda | 2014-11-06 | |
| | | | | | | | | | | The options_spec.lua suite has one purpose: Check if the :options commands will throw any exception(:options is implemented by $VIMRUNTIME/optwin.vim). For this it is best to use the `vim_command` API function since it will automatically catch exceptions and forward them via msgpack-rpc. Also, the option window seems to affect other tests, so call `restart` in the teardown hook. | |||
* | legacy tests: migrate test21 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test7 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test6 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test28 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test20 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test97 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test46 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test27 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test54 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test41 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test23 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test56 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test_autoformat_join | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test_changelist | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test81 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test_utf8 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test_insertcount | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test_options | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test18 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test106 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test22 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test9 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test102 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test4 | Rainer Borene | 2014-11-04 | |
| | ||||
* | legacy tests: migrate test35. #1318 | Nate Sullivan | 2014-10-22 | |
| | | | | | Migrate vim's integration test 35 (increment/decrement commands) to lua/busted. | |||
* | test: Move 'test/legacy' to 'test/functional' | Thiago de Arruda | 2014-10-01 | |
Busted can only discover tests from a single directory. In order to allow tests under 'legacy' to run as a functional test, it needed to be moved to 'test/functional'. |