diff --git a/README.md b/README.md index 529e6e21..9325158e 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,17 @@ gauge("Vowels in English language are .", function(vowelsGiven) { }); ``` +### Refactoring + +`gauge-js` supports refactoring your specifications and step implementations. Refactoring can be done using the following command signature: + +```sh +$ gauge --refactor "Existing step text" "New step text" +``` + +The JS runner plugin will alter the step text and callback signature in your step implementations. It does not change the callback body. + + ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md).