From a7ee01cc19a9c1410016ad8878530bf6901fafc2 Mon Sep 17 00:00:00 2001 From: Kaustav Das Modak Date: Thu, 11 Feb 2016 16:55:15 +0530 Subject: [PATCH] Add minimal documentation about refactoring Signed-off-by: Kaustav Das Modak --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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).