Tidy Gherkin icon

Tidy Gherkin

by martin.roddam

v0.4.6 Updated Mar 8, 2019 304KiB
CWS
10K
Users
★ 4.29
59 reviews
#4989
of 191.1K
developer
#422 of 16.7K
⚠️Not updated in over 2 years

Description

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
Tidy Gherkin screenshot 1Tidy Gherkin screenshot 2Tidy Gherkin screenshot 3

Reviews (7 cached)

★☆☆☆☆2023-10-19
Richard Earle

No longer works

★☆☆☆☆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

★☆☆☆☆2021-07-09
Jitendra Kushwah

I am not able to generate step definitions. its showing loading loading and loading.

★★☆☆☆2017-08-29
Jan Machalica

Functional, however IMO quite useless, as it reproduces syntax highliting and code generation, giving nothing more than that

★★★☆☆2023-09-11
Jayaprakash N

Team , Need latest version as old version is not supported by chrome.

★★★☆☆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.

Permissions (2)

Permissions

storage Can store data locally in your browser syncFileSystem

Details

Version 0.4.6
Updated Mar 8, 2019
Size 304KiB
First Seen Mar 30, 2026