Description from extension meta
Keep your Gherkin feature files consistent in layout, take the pain out of table formatting and cucumber step generation
Image from store
Description from store
Allows users to:
> Get started on a feature file quickly with a template.
> Create feature files with a consistent layout.
> Preview and quickly apply formatting changes to scenarios.
> See tips on correct syntax and see syntax highlighting as they type.
> Easily create scenario outline tables with automatic column formatting.
> Save/Open/Create feature files directly from Tidy Gherkin.
> Generate Cucumber for Java/Ruby/Javascript step definitions from your Gherkin feature file
-----------------------------
New in this version:
+ New feature: New feature: Support for auto-generation of Javascript step definitions.
Feedback appreciated as always.
-----------------------------
Just start typing your gherkin or paste in what you have already. As you type you can preview the tidied output below and either click 'Tidy' or hit Ctrl+Enter to tidy what you have so far.
Don't spend time trying to align all the pipes in your Scenario Outline table - just generate a table using the tool, roughly populate it with values and hit 'Tidy' to get that perfect alignment. If adding another row, just click the 'Insert Row After' button.
If you would like to generate some cucumber for Java step definitions, hit the 'JAVA STEPS' tab, or, for Ruby step definitions, hit the 'RUBY STEPS' tab.
As an example, the following Gherkin:
Given I have a new <customerType> customer
Would generate the Java:
@Given("^I have a new (.+) customer$")
public void i_have_a_new_customer(String customertype) throws Throwable {
throw new PendingException();
}
And the following Ruby:
Given /^I have a new (.+) customer$/ do |customertype|
# do something
end
The generator will look for:
Parameters (for use with Example tables) such as <customerType>
Strings such as "customerA"
Lists of strings such as "customer1,customer2"
In each case the appropriate regular expression and annotation will be constructed for the generated Java method.
Further examples:
When customer "customerA" logs in
Generates:
@When("^customer \"([^\"]*)\" logs in$")
public void customer_something_logs_in(String strArg1) throws Throwable {
throw new PendingException();
}
Or for Ruby:
When /^customer \"([^\"]*)\" logs in$/ do |customera|
# do something
end
And:
Then the customer sees "transaction1,transaction2" in their history
Generates:
@Then("^the customer sees \"([^\"]*)\" in their history$")
public void the_customer_sees_something_in_their_history(List<String> list1) throws Throwable {
throw new PendingException();
}
Or for Ruby:
Then /^the customer sees \"([^\"]*)\" in their history$/ do |transaction1transaction2|
# do something
end
Latest reviews
- (2024-08-22) Navnath Chavan: Those who can't use this plugin on chrome. Just install it on Edge Browser. It works very well on edge browser.
- (2024-01-05) Aparna: Use ChatGPT
- (2023-10-19) Richard Earle: No longer works
- (2023-09-11) Jayaprakash N: Team , Need latest version as old version is not supported by chrome.
- (2023-08-09) Bhakti Malaviya: Can anyone help me to resolve issue of version in Tidy Gherkin. This error message thrown in pop up. 'Tidy Gherkin' is no longer supported Old versions of Chrome Apps won't open on Windows devices after December 2022. You can check if there's a new version available.
- (2023-06-28) virag Gautre: not working on this Version 114.0.5735.199 of chrome please support and do something fast as possible
- (2023-06-07) Harold Alejandro Rojas Peña: In chrome version 114.0.5735.110 is not working.
- (2021-07-09) Jitendra Kushwah: I am not able to generate step definitions. its showing loading loading and loading.
- (2019-11-14) Haifeng Li: It's a great tool, but does not support i18n, I mean zh_CN here.
- (2019-07-16) Aibo Ev: Simple editor to write your stories with BDD but a pity that you can't do with another language (for example: language:fr)
- (2019-03-30) Roberto Altieri: This is good. It would be helpful to be able to avoid having the stub throwing exceptions. I use this app to create the stubs immediately before implementing the steps. I do not need the exceptions.
- (2019-02-14) Babu Duraiswamy: Superb tool, very sensibly written! I was running the tests to even generate the skeleton. Made my job a lot easier! Full marks.
- (2018-12-06) Mohamed Sarjoon: Very easy to use and gives really neat formatting , with data tables and text in them so elegantly alligned
- (2018-11-20) Farazi Forhad: It's too much user friendly & easy to understand.
- (2018-04-11) 李瑜宁: Thank you very much for providing such a plugin. Do you plan to support Typescript yet?
- (2018-04-09) Gerald Ekosso: Brilliant tool. I wish I could export it with the formatting though so that I could paste into a Rich text editor or even a word processor with the tabs all maintained and the spacing as accurate as in Tidy
- (2017-11-09) mitch Fox: great app, would be even better with an added spell checker :)
- (2017-10-25) Johnn Guerrero: Very useful app for BDD projects
- (2017-08-29) Jan Machalica: Functional, however IMO quite useless, as it reproduces syntax highliting and code generation, giving nothing more than that
- (2017-05-03) Maarten Morshuis: Great (and currently the only) tool to uniformly format Gherkin files. Would like a way to customize nr of tabs for each level, and to batch-format a whole folder of files at once, but this is already pretty great.
- (2017-04-19) I would like to have different layouts, like tabbed layout since I use it for easy visualization in a way that I don't need the original text visible, just the formatted one.
- (2017-04-13) Bhrein Brannick: Hi Martin, This is a great app and thanks for making this available. A good few of my team use it as well by the way. I like how you give the empty JavaScript steps. I use it in the context of creating empty JavaScript Steps From Cucumber Files For Use In Protractor & Cucumber.js test frameworks. I have one or two suggestions though: 1) Is it possible via a checkbox or of some other form to not include callback parameters as part of empty JavaScript generated stubs? Reason been Cucumber.js supports promises and recommends using that means so generally I typically remove the callback aspect of the JS STEPS that are generated by TidyGherkin. 2) When you press the Tidy! button it formats it in a very predefined manner...is that anyway customisable or is their plans to custom that in the future? Great job & thanks. All the best. ~Bhréin
- (2017-01-25) Shyam P: Please add "But" key word too Great APP for chrome and Gherkin users Thank you
- (2017-01-19) Søren Nielsen: I like it a lot, seem like a great tool. Small annoyance though, CTRL+S doesn't save correctly, even though it claims to have saved it (pop-up message).
- (2017-01-05) Dr. Cinder: This is great! Bravo martin.roddam. But as always, BDD devs - for some reason - completely alienate PHP devs. PHP is 90% of the internet, and MOST websites. As a BDD dev, it is a total failure to omit PHP, especially since there are PHP parsers such as Behat already available. Basically, by ignoring PHP, BDD devs are Balkanizing themselves into irrelevance. This product, Tidy Gherkin, which is an inherently cool product, only privides Ruby, Java and JS support. Scripting is the SAVIOR of BDD. You compiled software guys are the Judases of our occupation. If you're a PHP dev and love BDD, YOU'RE NOT ALONE!! Lets make BDD about BEHAVIOR not about compiling code. Contact me! customrayguns.com
- (2016-11-17) John Wilson: How do you get it to check spelling?
- (2016-05-30) Brian DeBoer: This is really well done. Great job!
- (2016-04-06) Sushil: Why I am not getting color syntax when I write gherkin.
- (2016-03-18) Klaus Johannes Rusch: Great application for writing nicely formatted Gherkin tests with no effort and immediately see the Java, Ruby and JS stubs, too.
- (2016-03-10) Mashrur Mia (Sa'ad): Love it. One question though while once editing is done, how do I format? I know that the window below has the "tidy version", any way to put the "tidy version" in the editor with an action? Ideally I am looking for that Alt+Ctrl+l keystrokes of IntelliJ so that it formats as I type.
- (2016-03-02) Pierre Fiorelli: Very useful to validate a gherkin file. Could it be possible to copy the formatted preview? i can only make a plain copy
- (2016-02-19) Jurn van Mieghem: Nice app and very light weight. Would it be possible to add the auto generation also for other languages (so the dutch given = "Stel" is also supported). Highlighting works fine but resolving it to Java is not unfortunately.
- (2016-01-23) Feng Sha: Very useful tool and save me lots of time on formatting.
- (2016-01-07) Francis Acu: Great app! I do have a question: Is there a way to also preview Java steps through Lambda expressions (Java 8)?
- (2015-12-15) Alex Parish: This is a superb plugin. JavaScript support would be a neat addition.
- (2015-12-11) Ravishankar Radhakrishnan: It certainly makes our life easier now :). It will be great, if you could include Javascript support for it.
- (2015-11-17) John Begley: Excellent! Thanks Martin, a great help.Please keep working on it...
- (2015-11-04) Rajab Natshah: It's a very good tool for Gherkiners. I hope that we do have plugins To export to PHP. And have a Visual Gherkin Recorder.
- (2015-08-21) Dan H: This is amazing. Finally a simple app that aligns everything for me!
- (2015-07-29) Robert Goldsworthy: I cannot locate some basic edit functions like "Find/Replace" to do global updates, frustrating. Unless I'm missing something.
- (2015-04-16) Edward Robinson: This is AWESOME!!
- (2015-04-03) Very neat and easy to use One question though: How to set a location where the scripts are saved? Example: How can I save what was written into say c:\gherkinscripts?
- (2015-02-02) Tim Hardy: Great, simple tool. Any plans to add an "open file" option? That's the only thing I'd like to see added to make this a full-circle tool.
- (2014-11-20) Dragos Serghie: Nice one Martin!