Vim plugin: Testing framework for Vim script
Clone or download

vim-vspec - Testing framework for Vim script

Build Status

vim-vspec is a testing framework for Vim script. It consists of:

  • Utilities to run tests in isolated Vim process,
  • A Vim plugin to write tests in a format which resembles RSpec, and
  • Additional syntax/indent files for Vim script to write tests.

vim-vspec is not a tool to set up environment to run tests. If you want to test a plugin which depends on some other plugins, you have to:

  • Install such dependencies to somewhere, and
  • Specify where the dependencies are installed to run tests.

These steps are tedious to do by hand. It is recommended to use vim-flavor to automate setting up test environment and running tests.

See also: