-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into systemtestsspeed
* main: Bump version VS Code integration proper doc title (#280) Fix: Reqnroll generates invalid code for rule backgrounds in Visual Basic (#284) Update nunit.md (#276) SolutionTests: Check if SDK version is installed and if not ignore the test (#266) Fix for #271 This PR modifies the Feature AST visitor to appropriately handle Rule Background steps. (#272) Bugfix/fix reqnroll.verify parallelization (#255)
- Loading branch information
Showing
29 changed files
with
375 additions
and
110 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
17 changes: 17 additions & 0 deletions
17
...ata.ReqnrollPlugin.IntegrationTest/Features/ExternalDataWithRuleBackgroundFromCSV.feature
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,17 @@ | ||
Feature: ExternalDataWithRuleBackgroundFromCSV | ||
|
||
This feature demonstrates that Rule Background steps are handled appropriately when using the External Data Plugin. | ||
This test validates a regression. | ||
|
||
Rule: Steps in Background are properly executed | ||
Background: | ||
Given my favorite color is blue | ||
@DataSource:products.csv | ||
Scenario: The basket price is calculated correctly | ||
The scenario will be treated as a scenario outline with the examples from the CSV file. | ||
The CSV file contains multile fields, including product and price. | ||
Given the price of <product> is €<price> | ||
And the customer has put 1 pcs of <product> to the basket | ||
When the basket price is calculated | ||
Then the basket price should be €<price> | ||
And the color given as my favorite was blue |
28 changes: 28 additions & 0 deletions
28
...ExternalData.ReqnrollPlugin.IntegrationTest/StepDefinitions/BackgroundStepsDefinitions.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,28 @@ | ||
using NUnit.Framework; | ||
using Reqnroll; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace XReqnroll.ExternalData.ReqnrollPlugin.IntegrationTest.StepDefinitions | ||
{ | ||
[Binding] | ||
internal class BackgroundStepsDefinitions | ||
{ | ||
[Given("my favorite color is {word}")] | ||
public void GivenMyFavoriteColorIs(string color) | ||
{ | ||
_color = color; | ||
} | ||
|
||
private string _color; | ||
|
||
[Then("the color given as my favorite was {word}")] | ||
public void ThenTheColorGivenAsMyFavoriteWas(string color) | ||
{ | ||
Assert.That(_color, Is.EqualTo(color)); | ||
} | ||
} | ||
} |
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
38 changes: 26 additions & 12 deletions
38
...s/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin.IntegrationTest/Features/Feature.feature
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,14 +1,28 @@ | ||
@DoNotParallelize | ||
Feature: Verify Test | ||
|
||
Scenario: Check if Verify is working | ||
When I try Verify with Reqnroll | ||
Then it works | ||
|
||
Scenario Outline: Check if Verify is working with Example Tables | ||
When I try Verify with Reqnroll for Parameter '<Parameter>' | ||
Then it works | ||
|
||
Examples: | ||
| Parameter | | ||
| 1 | | ||
| 2 | | ||
Scenario: Check if Verify is working | ||
When I try Verify with Reqnroll | ||
Then it works | ||
|
||
Scenario Outline: Check if Verify is working with Example Tables | ||
When I try Verify with Reqnroll for Parameter '<Parameter>' | ||
Then it works | ||
|
||
Examples: | ||
| Parameter | | ||
| 1 | | ||
| 2 | | ||
|
||
Scenario: Check if Verify is working with multiple scenario parameters | ||
When I try Verify with Reqnroll for Parameter '<Parameter>' and some additional parameter '<Additional Parameter>' | ||
Then it works | ||
|
||
Examples: | ||
| Parameter | Additional Parameter | | ||
| 1 | a | | ||
| 2 | b | | ||
|
||
Scenario: Check if Verify is working with global registered path info | ||
When I try Verify with Reqnroll with global registered path info | ||
Then it works |
6 changes: 6 additions & 0 deletions
6
...Verify/Reqnroll.Verify.ReqnrollPlugin.IntegrationTest/Features/Parallel Feature 1.feature
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,6 @@ | ||
Feature: Verify Parallel feature #1 | ||
|
||
Scenario: Check if Verify uses the correct paths when ran in parallel 1 | ||
When I try Verify with Reqnroll in parallel | ||
Then it works in parallel with contents `Verify Parallel feature #1` | ||
And the verified file is `Verify Parallel feature #1.Check if Verify uses the correct paths when ran in parallel 1.verified.txt` with contents `Verify Parallel feature #1` |
6 changes: 6 additions & 0 deletions
6
...Verify/Reqnroll.Verify.ReqnrollPlugin.IntegrationTest/Features/Parallel Feature 2.feature
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,6 @@ | ||
Feature: Verify Parallel feature #2 | ||
|
||
Scenario: Check if Verify uses the correct paths when ran in parallel 2 | ||
When I try Verify with Reqnroll in parallel | ||
Then it works in parallel with contents `Verify Parallel feature #2` | ||
And the verified file is `Verify Parallel feature #2.Check if Verify uses the correct paths when ran in parallel 2.verified.txt` with contents `Verify Parallel feature #2` |
1 change: 1 addition & 0 deletions
1
...lel feature #1.Check if Verify uses the correct paths when ran in parallel 1.verified.txt
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 @@ | ||
Verify Parallel feature #1 |
1 change: 1 addition & 0 deletions
1
...lel feature #2.Check if Verify uses the correct paths when ran in parallel 2.verified.txt
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 @@ | ||
Verify Parallel feature #2 |
1 change: 1 addition & 0 deletions
1
...ures/Verify Test.Check if Verify is working with global registered path info.verified.txt
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 @@ | ||
value |
1 change: 1 addition & 0 deletions
1
...Verify Test.Check if Verify is working with multiple scenario parameters_1_a.verified.txt
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 @@ | ||
1 .. a |
1 change: 1 addition & 0 deletions
1
...Verify Test.Check if Verify is working with multiple scenario parameters_2_b.verified.txt
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 @@ | ||
2 .. b |
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
8 changes: 8 additions & 0 deletions
8
Plugins/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin.IntegrationTest/reqnroll.json
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,8 @@ | ||
{ | ||
"$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json", | ||
"generator": { | ||
"addNonParallelizableMarkerForTags": [ | ||
"DoNotParallelize" | ||
] | ||
} | ||
} |
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.