An open API service indexing awesome lists of open source software.

https://github.com/cloud8421/vimux-cucumber

Run Cucumber Features through Vimux
https://github.com/cloud8421/vimux-cucumber

Last synced: over 1 year ago
JSON representation

Run Cucumber Features through Vimux

Awesome Lists containing this project

README

          

WHAT?
====================

Heavily inspired by [Vimux-ruby-test](https://github.com/pgr0ss/vimux-ruby-test). Most of the codebase is directly taken from that plugin itself.

- Run the feature your cursor is currently on
- Run the entire feature you are working in
- Streaming output to tmux via vimux

HOW?
====================

Use any of the commands below. Map them to shortcuts
in your .vimrc for easy access.

- RunFocusedCuke - run focused cuke
- RunAllCukes - run all cukes in the current file

IMPORTANT: if you use this plugin and Vimux-Ruby-Test, you may want to share the same shortcut.
If you do, you can use the following configuration:

if exists('$TMUX')
autocmd FileType ruby map f :RunRubyFocusedTest
autocmd FileType ruby map t :RunAllRubyTests
autocmd FileType cucumber map f :RunFocusedCuke
autocmd FileType cucumber map t :RunAllCukes
endif

This assumes that your Vim configuration recognizes Cucumber features with the `cucumber` file type.

INSTALL
====================

Put the contents of this directory into your pathogen bundle. That's it!

REQUIREMENTS
====================

- vim with ruby support (compiled +ruby)
- [vimux](https://github.com/benmills/vimux)

CONTRIBUTORS:
====================

- [Claudio Ortolina](http://github.com/cloud8421)

Original code by:

- [Drew Olson](https://github.com/drewolson)
- [Paul Gross](https://github.com/pgr0ss)