Home

Awesome

VIM Testify v0.6.0 Build

A very basic unit testing framework for viml

Using Testify

Testify leverages vim script exception handling to define assertions which will capture error information and enable unit testing within vim's environment, where your plugin is expected to work.

Writing tests couldn't be simpler, because you do so, in plain vimscript without any syntactic sugar coating.

Here is what it looks like :

You can use the following commands :

Currently there are 3 test logging methods supported, this can be controlled by setting option g:testify#logger#type.

Installation

  1. For installation with a popular plugin manager such as vundle, vim-plug, neobundle, etc. add the repository dhruvasagar/vim-testify to your ~/.vimrc with the appropriate plugin command.
  2. For pathogen, just clone / submodule this repository within your bundle directory.
  3. For manual installation (highly discouraged), copy all files into your ~/.vim directory.

Contributing

Alternatively open an issue if you find any or need help.