Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Castle.Core" Version="5.1.1" />
<PackageReference Include="Reqnroll" Version="2.4.1" />
<PackageReference Include="Reqnroll.Tools.MsBuild.Generation" Version="2.4.1" />
<PackageReference Include="Reqnroll.xUnit" Version="2.4.1" />
<PackageReference Include="Reqnroll" Version="3.0.3" />
<PackageReference Include="Reqnroll.Tools.MsBuild.Generation" Version="3.0.3" />
<PackageReference Include="Reqnroll.xUnit" Version="3.0.3" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 2 additions & 2 deletions Allure.Reqnroll.Tests/Integration/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ static Dictionary<string, List<string>> ParseFeatures(string featuresDir)
{
var children = parser.Parse(f.FullName).Feature.Children.ToList();
var scenarioOutlines = children.Where(
x => (x as dynamic).Examples.Length > 0
x => (x as dynamic).Examples.Count > 0
).ToList();
foreach (var s in scenarioOutlines)
{
var examplesCount = (s as dynamic).Examples[0]
.TableBody.Length;
.TableBody.Count;
for (int i = 1; i < examplesCount; i++)
{
children.Add(s);
Expand Down
2 changes: 1 addition & 1 deletion Allure.Reqnroll/Allure.Reqnroll.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="Reqnroll" Version="2.4.1" />
<PackageReference Include="Reqnroll" Version="3.0.3" />
<PackageReference Include="System.Collections.Specialized" Version="4.3.0" />
</ItemGroup>

Expand Down
11 changes: 4 additions & 7 deletions Allure.Reqnroll/SelectiveRun/TestPlanAwareTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ ITestRunner underlyingRunner
this.underlyingRunner = underlyingRunner;
}

public void InitializeTestRunner(string testWorkerId) =>
this.underlyingRunner.InitializeTestRunner(testWorkerId);

public async Task OnTestRunStartAsync() =>
await this.underlyingRunner.OnTestRunStartAsync();

Expand All @@ -59,9 +56,9 @@ public async Task OnFeatureStartAsync(FeatureInfo featureInfo) =>
public async Task OnFeatureEndAsync() =>
await this.underlyingRunner.OnFeatureEndAsync();

public void OnScenarioInitialize(ScenarioInfo scenarioInfo)
public void OnScenarioInitialize(ScenarioInfo scenarioInfo, RuleInfo ruleInfo)
{
this.underlyingRunner.OnScenarioInitialize(scenarioInfo);
this.underlyingRunner.OnScenarioInitialize(scenarioInfo, ruleInfo);
this.ApplyTestPlanToCurrentScenario();
}

Expand All @@ -74,7 +71,7 @@ public async Task OnScenarioStartAsync()
else
{
// This call will set the scenario's status to skipped.
this.SkipScenario();
await this.SkipScenarioAsync();

// We're skipping scenarios not in the test plan using the unit
// test framework's runtime API. Neither BeforeScenario nor
Expand All @@ -91,7 +88,7 @@ public async Task CollectScenarioErrorsAsync() =>
public async Task OnScenarioEndAsync() =>
await this.underlyingRunner.OnScenarioEndAsync();

public void SkipScenario() => this.underlyingRunner.SkipScenario();
public async Task SkipScenarioAsync() => await this.underlyingRunner.SkipScenarioAsync();

public async Task GivenAsync(
string text,
Expand Down
Loading