Integrate behave development tools into vim.
It's a plugin to ease behavior driven development, especifically python's behave, with vim.
It uses filetype detection to add the features in gherkin and python files, allowing one to:
- Jump from a gherkin step to it's implementation,
- Find all usages of current step implementation in gherkin files.
In both cases, the quickfix window will open when there are results, otherwise it will remain closed.
More features are planned, such as:
- Generating step snippets directly from gherkin,
- Checking if all defined steps are found.
Documentation is avaiable through vim :help behave.txt
, or from github.
To contribute, fork the repository, add some tests if possible and submit a pull request.
Follow vint -s
as a style guide for vimscript.
You might want to use pathogen or vundle to install behave.vim.
Clone the repository in your pathogen runtimepath:
git clone https://github.com/avanzzzi/behave.vim.git ~/.vim/bundle/behave.vim
Add the following in your ~/.vimrc
plugin section:
Plugin 'avanzzzi/behave.vim'
behave.vim defines only one mapping: <leader>b
.
Go to definition or find usages will be triggered, depending on the filetype of the current buffer.
Unit testing using Vader are run automatically on travis-ci.
If you want to run tests locally, from project's root, run:
tests/run.sh