Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | Add unit tests for mch_isdir. | Thomas Wienecke | 2014-03-05 | |
| | ||||
* | Apply small refactor to unit tests | Thiago de Arruda | 2014-03-04 | |
| | | | | | Redefine macro constants as enums in the ffi and import those in their respective test modules. | |||
* | Correct a few parentheses. | Thomas Wienecke | 2014-03-04 | |
| | ||||
* | Rename and refactor mch_FullName. | Thomas Wienecke | 2014-03-04 | |
| | | | | | | | | | * Rename mch_FullName to mch_full_name to match the style guide. * Add mch_full_dir_name, which saves the absolute path of a given directory relative to cwd into a given buffer. * Add function append_path, which glues together two given paths with a slash. * Adapt moonscript coding style to the tests. | |||
* | Add unit tests for ported filesystem functions. | Thomas Wienecke | 2014-03-03 | |
| | ||||
* | Add more example unit tests and run with travis | Thiago de Arruda | 2014-02-27 | |
| | ||||
* | Add basic infrastructure for unit testing | Thiago de Arruda | 2014-02-27 | |
Tests will be written using the [moonscript](http://moonscript.org/) language, a lua 'dialect' that is whitespace-significant and has a syntax similar to coffeescript. The test framework used is [busted](http://olivinelabs.com/busted/), a bdd framework for lua/moonscript. Luajit has a nice ffi module, which lets lua programs link shared libraries and call it's functions without writing any C code. To take advantage of this fact for testing C functions, a new target was added to CMakeLists.txt, which compiles neovim as a shared library that is loaded by the process running the tests. This commit adds necessary code for downloading and installing a lua package manager(luarocks) locally. It wasn't added as a subtree because there are quite a few blobs in its source tree. |