Vim javascript cucumber functionality

Cucumber is great. Human readable steps that can power different testing frameworks.

One of the main pain points is finding the step definition from a feature file. My primary text editor is vim. A plugin does exist to provide this functionality but it is geared towards ruby cucumber. I am usingĀ vim-cucumber. I already have this installed for syntax highlighting but it was not easily configurable forĀ cucumber-js. Below are a few snippets to have a key combo find and open the corresponding step definition from a feature file.

Leave a Reply

Your email address will not be published. Required fields are marked *