-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#23: BDD: Added ability to parse and convert Scenario Outline to [XUn…
…it.Theory] test method.
- Loading branch information
1 parent
961cf95
commit d2125fd
Showing
10 changed files
with
238 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Behaviours/Synergy.Behaviours.Testing/Gherkin/ScenarioOutline.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Synergy.Behaviours.Testing.Gherkin; | ||
|
||
public record ScenarioOutline( | ||
string Title, | ||
List<string> Tags, | ||
List<Step> Steps, | ||
Rule? Rule, | ||
Examples Examples, | ||
Line Line | ||
) : Scenario( | ||
Title, | ||
Tags, | ||
Steps, | ||
Rule, | ||
Line | ||
) | ||
{ | ||
public new static string[] Keywords { get; } = { "Scenario Outline", "Scenario Template" }; | ||
|
||
/// <inheritdoc /> | ||
public override string[] Lines | ||
{ | ||
get | ||
{ | ||
var lines = new List<string>(base.Lines); | ||
// TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: add here Examples section when there is deicated class for header and row | ||
return lines.ToArray(); | ||
} | ||
} | ||
} |
13 changes: 11 additions & 2 deletions
13
...urs/Synergy.Behaviours.Tests/Architecture/Debt/Todos.Technical.Debt.verified.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
# Technical Debt for Synergy.Contracts | ||
|
||
Total: 1 | ||
Total: 6 | ||
|
||
## [XUnitFeatureGenerator.cs](../../../Synergy.Behaviours.Testing/Generator/XUnitFeatureGenerator.cs) | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: convert the arguments to parameters by making the name camelCase | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: Consider Introducing inherited Step wit arguments (in outline only) | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: convert the arguments to parameters by making the name camelCase | ||
|
||
## [GherkinParser.cs](../../../Synergy.Behaviours.Testing/Gherkin/Parser/GherkinParser.cs) | ||
- TODO: Marcin Celej [from: Marcin Celej on: 10-05-2023]: Support Scenario Outline/Template along with Examples | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: Parse description lines after Feature: line | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: Introduce class for header and row | ||
|
||
## [ScenarioOutline.cs](../../../Synergy.Behaviours.Testing/Gherkin/ScenarioOutline.cs) | ||
- TODO: Marcin Celej [from: Marcin Celej on: 18-01-2024]: add here Examples section when there is deicated class for header and row |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.