From 669e1791e6ec3c32323a701680ba03d7c2ab2416 Mon Sep 17 00:00:00 2001 From: hedhyw Date: Sat, 16 Sep 2023 05:47:52 +0300 Subject: [PATCH] docs: use scenario outline for scenarios with examples [#95] --- README.md | 2 +- internal/app/app.feature | 16 ++++++++-------- internal/docplugin/goplugin/goplugin.go | 10 +++++++++- internal/generator/examples/bool.feature | 2 +- .../generator/examples/default/bool.feature.json | 2 +- .../examples/default/issue_26.feature.json | 2 +- .../examples/default/readme.feature.json | 2 +- internal/generator/examples/issue_26.feature | 2 +- .../examples/parallel/bool.feature.json | 2 +- .../examples/parallel/issue_26.feature.json | 2 +- .../examples/parallel/readme.feature.json | 2 +- internal/generator/examples/readme.feature | 2 +- internal/generator/generator_test.feature | 2 +- 13 files changed, 28 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 1768015..a9178a7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The generator is very customizable, it is possible to customize an output for an **Given** [feature](internal/generator/examples/readme.feature) [[reference](https://cucumber.io/docs/gherkin/reference/)]: ```feature Feature: Application command line tool - Scenario: User wants to see usage information + Scenario Outline: User wants to see usage information When the application is started with Then usage should be printed And exit status should be diff --git a/internal/app/app.feature b/internal/app/app.feature index 5dabd88..cf2a17d 100644 --- a/internal/app/app.feature +++ b/internal/app/app.feature @@ -1,5 +1,5 @@ Feature: Application command line tool - Scenario: User wants to generate the output in given format + Scenario Outline: User wants to generate the output in given format When is given And is provided Then the output should be generated @@ -11,21 +11,21 @@ Feature: Application command line tool | app.feature | invalid | does not | | notfound.feature | raw | does not | - Scenario: User wants to see usage information + Scenario Outline: User wants to see usage information When is provided Then usage should be printed Examples: | | | --help | - Scenario: User wants to list built-in templates + Scenario Outline: User wants to list built-in templates When is provided Then templates should be printed Examples: | | | --list | - Scenario: User wants to use custom template + Scenario Outline: User wants to use custom template When