BDDEditor is a simple text editor that can autocomplete a step definition based on existing features.
Behavior Driven Development is based on human-readable features written in Gherkin.
A feature can be used as manual test script or automated with tools such as Cucumber. Regex is written to process each sentence in a feature and execute some code to test corresponding conditions. The sentence in a feature is called a step definition and group of step definitions form a scenario.
A challenge is that step definitions are not always written consistently and existing regex cannot be reused. Too often, new regex is written for new scenario and code duplication grows.
BDDEditor catalogues existing feature files and suggests appropriate step definition as the user types. This promotes consistent writing and prevents spelling errors.
Install the following
- Node.js
- Download package from website
- grunt
$sudo npm install -g grunt-cli
- bower
$sudo npm install -g bower
Execute the following in order
$bower install
downloads bower dependencies as listed in bower.json$npm install
downloads node dependencies as listed in package.json$grunt
builds the app and runs the tests in test folder
Launch the app
$grunt serve
and browse to http://localhost:9000
Release notes are found here