vim-themis
vim-themis copied to clipboard
A testing framework for Vim script.
### Describe the bug Vimspec style tests fail in vim9 script. ### How to reproduce the problem from Vim startup Create `test.vimspec` as follows: ```vim vim9script Describe d Context c...
### Is your feature request related to a problem? One of my tests is failing. The function reports possible problems using a logger that basically does `echomsg`. I would like...
Add support for writing tests in pure lua. Might be modifying simple test library such as this https://github.com/bjornbytes/lust/ and using `vim.fn.*` from lua to piggy back on vimscript version for...
To solve #26. I create a 'global' helper which can register events globally like: ``` let s:events = {} function! s:events.initialize() abort call themis#log('Initialize') endfunction function! s:events.before() abort call themis#log('Before')...
Here is how most of javascript does this. They basically allows `done` argument in the test and the test framework checks the argument and if it has 1 arg it...
Currently, themis support Vim 7.4(in CI setting) But themis used vital, and vital now unsupport under 8.0 or below(support only prev 8.0 and curr 8.1) I have question for updating...
It would be nice if I can see which test is failed even when Fatal error occur with dot report like ``` FATAL ERROR: .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................PP........................................................................................................................................................................................ Error occurred in core. Command...
Like `Fail`, `TODO`, or `Skip` but won't stop test. While vim-themis hooks stdout, it would be really nice if themis provide such kind of command :smile:
Do you think it would be possible to implement testing coverage? Or would you know of another tool that fulfill this purpose? Thanks for the great work!
Does themis have a plan to support the test with mock object, like [kannokanno/vmock](https://github.com/kannokanno/vmock)? This should be useful for a vim plugin which is painful to write tests for some...