From 8ac29a3fcfe114da6d5fa60bcef3d894175fe536 Mon Sep 17 00:00:00 2001 From: Joe Hansche Date: Tue, 4 Aug 2015 13:26:41 -0400 Subject: [PATCH] Add Gherkin language test(s) --- .../gherkin/expected/tables.feature | 10 ++++++++ .../gherkin/expected/test.feature | 23 +++++++++++++++++++ .../gherkin/original/_tables.feature | 9 ++++++++ .../gherkin/original/test.feature | 23 +++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 examples/nested-jsbeautifyrc/gherkin/expected/tables.feature create mode 100644 examples/nested-jsbeautifyrc/gherkin/expected/test.feature create mode 100644 examples/nested-jsbeautifyrc/gherkin/original/_tables.feature create mode 100644 examples/nested-jsbeautifyrc/gherkin/original/test.feature diff --git a/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature b/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature new file mode 100644 index 0000000..cbeb73c --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature @@ -0,0 +1,10 @@ +Feature: Description + + Scenario Outline: This one will have examples + Given the + Then the + + Examples: + | what | then | + | first value | first then | + | second what value | second then value | \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/expected/test.feature b/examples/nested-jsbeautifyrc/gherkin/expected/test.feature new file mode 100644 index 0000000..57c0f8a --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/expected/test.feature @@ -0,0 +1,23 @@ +Feature: The description of the feature that + might need to be wrapped + onto multiple lines + + Scenario: The description of the scenario that + might need to be wrapped + onto multiple lines + Given I am in some state + When I take some action + # And I can add a comment + Then I should see some outcome + + # A comment gets moved above the tag + @tag1 + Scenario: This scenario has a tag + Then I should see some outcome + + @tag1 @tag2 + Scenario: This scenario has two tags + Then I should see some outcome + + Scenario: This scenario does not have any tags + Then I should see some outcome \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature b/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature new file mode 100644 index 0000000..038fc33 --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature @@ -0,0 +1,9 @@ +Feature: Description + +Scenario Outline: This one will have examples + Given the + Then the + Examples: + | what | then | + | first value | first then| + | second what|second then| \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/original/test.feature b/examples/nested-jsbeautifyrc/gherkin/original/test.feature new file mode 100644 index 0000000..73dddfd --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/original/test.feature @@ -0,0 +1,23 @@ +Feature: The description of the feature that +might need to be wrapped +onto multiple lines + +Scenario: The description of the scenario that +might need to be wrapped +onto multiple lines +Given I am in some state +When I take some action +# And I can add a comment +Then I should see some outcome + +@tag1 +# A comment gets moved above the tag +Scenario: This scenario has a tag +Then I should see some outcome + +@tag1 @tag2 +Scenario: This scenario has two tags +Then I should see some outcome + +Scenario: This scenario does not have any tags +Then I should see some outcome \ No newline at end of file