Skip to content

Commit

Permalink
feat(Reqnroll): migrate from Specflow to Reqnroll
Browse files Browse the repository at this point in the history
Specflow repo is dormant by more than 12mo and Reqnroll is born as a Community fork.

Ark.Tool.Specflow is preserved but to be considered as [Obsolate] and is going to be removed by next Major.
  • Loading branch information
AndreaCuneo committed Oct 23, 2024
1 parent a9f3774 commit 403556d
Show file tree
Hide file tree
Showing 24 changed files with 846 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="netDumbster" Version="3.1.1" />
<PackageReference Include="NodaTime.Testing" Version="3.2.0" />
<PackageReference Include="SpecFlow.MsTest" Version="3.9.74" />
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.9.74" />
<PackageReference Include="Reqnroll.MsTest" Version="2.1.1" />
<PackageReference Include="Reqnroll.Tools.MsBuild.Generation" Version="2.1.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Ark.Tools.Http\Ark.Tools.Http.csproj" />
<ProjectReference Include="..\..\..\Ark.Tools.SpecFlow\Ark.Tools.SpecFlow.csproj" />
<ProjectReference Include="..\..\..\Ark.Tools.Reqnroll\Ark.Tools.Reqnroll.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System.Linq;
using System.Text;

using TechTalk.SpecFlow;
using Reqnroll;

namespace Ark.Reference.Core.Tests.Auth
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
using System.Linq;
using System.Text.Json;

using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
using Reqnroll;
using Reqnroll.Assist;

namespace Ark.Reference.Core.Tests.Features
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public void ThenTheChangesContainsRecords(int count)
}


[Then(@"the (current|previous) Ping audit is")]
[Then(@"^the (current|previous) Ping audit is$")]
public void ThenTheCurrentContractAuditIs(string choice, Table table)
{
var changes = _changes?.Changes?.First();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

using System.Collections.Generic;

using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
using Reqnroll;
using Reqnroll.Assist;

namespace Ark.Reference.Core.Tests.Features
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Data;
using System.Linq;

using TechTalk.SpecFlow;
using Reqnroll;

namespace Ark.Reference.Core.Tests.Init
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Linq;

using TechTalk.SpecFlow;
using Reqnroll;


namespace Ark.Reference.Core.Tests.Init
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NodaTime;
using NodaTime.Text;
using TechTalk.SpecFlow;
using Reqnroll;

namespace Ark.Reference.Core.Tests.Init
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Ark.Tools.SpecFlow;
using Ark.Tools.Reqnroll;

using TechTalk.SpecFlow;
using Reqnroll;

namespace Ark.Reference.Core.Tests.Init
{
Expand All @@ -11,22 +11,22 @@ public class TableMappingConfiguration
public static void SupportTableWithNodaTime()
{
// last takes prio, this is a last resort
TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new StringTypeConverterValueRetriver());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new StringTypeConverterValueRetriver());

TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new NodaTimeValueRetriverAndComparer());
TechTalk.SpecFlow.Assist.Service.Instance.ValueComparers.Register(new NodaTimeValueRetriverAndComparer());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new NodaTimeValueRetriverAndComparer());
Reqnroll.Assist.Service.Instance.ValueComparers.Register(new NodaTimeValueRetriverAndComparer());

TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new EnumValueRetrieverAndComparer());
TechTalk.SpecFlow.Assist.Service.Instance.ValueComparers.Register(new EnumValueRetrieverAndComparer());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new EnumValueRetrieverAndComparer());
Reqnroll.Assist.Service.Instance.ValueComparers.Register(new EnumValueRetrieverAndComparer());

TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new StringValueRetriverAndComparer());
TechTalk.SpecFlow.Assist.Service.Instance.ValueComparers.Register(new StringValueRetriverAndComparer());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new StringValueRetriverAndComparer());
Reqnroll.Assist.Service.Instance.ValueComparers.Register(new StringValueRetriverAndComparer());

TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new NestedJsonRetrieverAndComparer<decimal[]>());
TechTalk.SpecFlow.Assist.Service.Instance.ValueComparers.Register(new NestedJsonRetrieverAndComparer<decimal[]>());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new NestedJsonRetrieverAndComparer<decimal[]>());
Reqnroll.Assist.Service.Instance.ValueComparers.Register(new NestedJsonRetrieverAndComparer<decimal[]>());

TechTalk.SpecFlow.Assist.Service.Instance.ValueRetrievers.Register(new NestedJsonRetrieverAndComparer<decimal?[]>());
TechTalk.SpecFlow.Assist.Service.Instance.ValueComparers.Register(new NestedJsonRetrieverAndComparer<decimal?[]>());
Reqnroll.Assist.Service.Instance.ValueRetrievers.Register(new NestedJsonRetrieverAndComparer<decimal?[]>());
Reqnroll.Assist.Service.Instance.ValueComparers.Register(new NestedJsonRetrieverAndComparer<decimal?[]>());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
using System.Security.Claims;
using System.Threading;

using TechTalk.SpecFlow;
using Reqnroll;
using System.Threading.Tasks;
using Flurl.Http.Configuration;
using Flurl.Http;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Net;
using System.Net.Http.Headers;

using TechTalk.SpecFlow;
using Reqnroll;

namespace Ark.Reference.Core.Tests
{
Expand Down
113 changes: 50 additions & 63 deletions Ark.ReferenceProject/Core/Ark.Reference.Core.Tests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,24 @@
"NodaTime": "3.2.0"
}
},
"SpecFlow.MsTest": {
"Reqnroll.MsTest": {
"type": "Direct",
"requested": "[3.9.74, )",
"resolved": "3.9.74",
"contentHash": "HRRPSZOOBNHtOG9bWhmYGp8trRr715rVTr0bJlq6qYhgi/xqfnx0OEC9H68u3gshGbCni7TBbg3sPhKlNaxpgQ==",
"requested": "[2.1.1, )",
"resolved": "2.1.1",
"contentHash": "G2lDlvqx9Op9sGu5f2n+HMzXbueq62Rs7AJBhxE4nD8XJIdopVBEyX7nG4c9ZriHUPf/Q7yavWrkUQjKDcCWkA==",
"dependencies": {
"MSTest.TestFramework": "2.1.2",
"SpecFlow": "[3.9.74]",
"SpecFlow.Tools.MsBuild.Generation": "[3.9.74]"
"MSTest.TestFramework": "2.2.8",
"Reqnroll": "[2.1.1]",
"Reqnroll.Tools.MsBuild.Generation": "[2.1.1]"
}
},
"SpecFlow.Tools.MsBuild.Generation": {
"Reqnroll.Tools.MsBuild.Generation": {
"type": "Direct",
"requested": "[3.9.74, )",
"resolved": "3.9.74",
"contentHash": "I/9OvmKOohJqIUNJ0xGYJCWfL6WKDaes8OoOAD/2yhGX+tzC5ofs9yqkP9Cu/xfnIx+11IR3pZs7YhBhGAcgWQ==",
"requested": "[2.1.1, )",
"resolved": "2.1.1",
"contentHash": "xjv2ihoRHpAAjhZX9d964/0R8mhgHiquPBjnJmhc2sYQnemDCkHIsb4d2VAMKS/HeiXLi6NAxujjgAYFBcxDKg==",
"dependencies": {
"SpecFlow": "[3.9.74]"
"Reqnroll": "[2.1.1]"
}
},
"Asp.Versioning.Abstractions": {
Expand Down Expand Up @@ -414,11 +414,6 @@
"System.Reflection.Metadata": "5.0.0"
}
},
"BoDi": {
"type": "Transitive",
"resolved": "1.5.0",
"contentHash": "CzIPzdIAFSd2zuLxI+0K9s48Qv3HQDbWiApn9h96j284rHs2bSPrn/PMca3mi4q3xLSEqOp+GUJ6+mXDD9prKg=="
},
"BouncyCastle.Cryptography": {
"type": "Transitive",
"resolved": "2.4.0",
Expand Down Expand Up @@ -452,6 +447,11 @@
"System.Diagnostics.EventLog": "6.0.0"
}
},
"Cucumber.CucumberExpressions": {
"type": "Transitive",
"resolved": "17.1.0",
"contentHash": "IZFDLLwrUCKuGDXQzmAWZa+kQFpVmVwWD8wEl0UWGOR83UQfzqg8hZeSSNUOXlW0Kh3vMO6kEm3FpNC4amKMaw=="
},
"Dapper": {
"type": "Transitive",
"resolved": "2.1.35",
Expand Down Expand Up @@ -519,8 +519,8 @@
},
"Gherkin": {
"type": "Transitive",
"resolved": "19.0.3",
"contentHash": "kq9feqMojMj9aABrHb/ABEPaH2Y4dSclseSahAru6qxCeqVQNLLTgw/6vZMauzI1yBUL2fz03ub5yEd5btLfvg=="
"resolved": "29.0.0",
"contentHash": "az9zmD5V72UZUzYcDyHoZHFRT5eSLOg1Co2r3AtlshPe41Am7iMwOJG+xHxZ1Pfn6agGoWw1dhm6Pn8Dg6QBUg=="
},
"Hellang.Middleware.ProblemDetails": {
"type": "Transitive",
Expand Down Expand Up @@ -1154,11 +1154,11 @@
},
"Microsoft.Extensions.DependencyModel": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==",
"resolved": "8.0.1",
"contentHash": "5Ou6varcxLBzQ+Agfm0k0pnH7vrEITYlXMDuE6s7ZHlZHz6/G8XJ3iISZDr5rfwfge6RnXJ1+Wc479mMn52vjA==",
"dependencies": {
"System.Text.Encodings.Web": "8.0.0",
"System.Text.Json": "8.0.0"
"System.Text.Json": "8.0.4"
}
},
"Microsoft.Extensions.Diagnostics": {
Expand Down Expand Up @@ -1595,8 +1595,8 @@
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "1.1.1",
"contentHash": "TMBuzAHpTenGbGgk0SMTwyEkyijY/Eae4ZGsFNYJvAr/LDn1ku3Etp3FPxChmDp5HHF3kzJuoaa08N0xjqAJfQ=="
"resolved": "1.1.0",
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
},
"Microsoft.NETCore.Targets": {
"type": "Transitive",
Expand Down Expand Up @@ -1643,11 +1643,6 @@
"resolved": "7.20.0",
"contentHash": "nJLDCOv3qemN0XI5kmUN9h38Qw+ZQBoYtWwSGhPkDEiiZSDcAwLMgqbGNKmK3myhVWASCqXtOqrj5jUnGZrH/Q=="
},
"Microsoft.SqlServer.Dacpacs.Master": {
"type": "Transitive",
"resolved": "160.0.0",
"contentHash": "bgiN77Hfpev7+LON0WOZbgz1VvL6abuUkw14ulLwAnAiuYCcav8HCAoGlgSXVhsLd8U5+jSgeX/ZrNBuPF24qA=="
},
"Microsoft.SqlServer.Server": {
"type": "Transitive",
"resolved": "1.0.0",
Expand Down Expand Up @@ -1963,6 +1958,18 @@
"rebus": "8.4.2"
}
},
"Reqnroll": {
"type": "Transitive",
"resolved": "2.1.1",
"contentHash": "RhV5B0lxVXzP+0U9OUkWf3nMGfSlWnxQdUp0mcatvuQISxB8ZPjdhJB3T4Vjo3bFMiQb/0LUXUmNZ0IqBPZldw==",
"dependencies": {
"Cucumber.CucumberExpressions": "17.1.0",
"Gherkin": "29.0.0",
"Microsoft.Extensions.DependencyModel": "8.0.1",
"SpecFlow.Internal.Json": "1.0.8",
"System.Runtime.Loader": "4.3.0"
}
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.2",
Expand Down Expand Up @@ -2138,20 +2145,6 @@
"Newtonsoft.Json": "10.0.3"
}
},
"SpecFlow": {
"type": "Transitive",
"resolved": "3.9.74",
"contentHash": "n6kcg9ZeQWxqJFoT23SsFT89U1QQNwvcN9pAX5alB6ZPr6K0p5D5nGIJ1PZsSaFaRFutiwQ+DicmxBCPAZVYIA==",
"dependencies": {
"BoDi": "1.5.0",
"Gherkin": "19.0.3",
"Microsoft.Extensions.DependencyModel": "1.0.3",
"SpecFlow.Internal.Json": "1.0.8",
"System.Configuration.ConfigurationManager": "4.5.0",
"System.Net.Http": "4.3.4",
"System.Runtime.Loader": "4.3.0"
}
},
"SpecFlow.Internal.Json": {
"type": "Transitive",
"resolved": "1.0.8",
Expand Down Expand Up @@ -2678,10 +2671,10 @@
},
"System.Net.Http": {
"type": "Transitive",
"resolved": "4.3.4",
"contentHash": "aOa2d51SEbmM+H+Csw7yJOuNZoHkrP2XnAurye5HWYgGVVU54YZDvsLUYRv6h18X3sPnjNCANmN7ZhIPiqMcjA==",
"resolved": "4.3.0",
"contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.1",
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.DiagnosticSource": "4.3.0",
Expand All @@ -2706,7 +2699,7 @@
"System.Threading.Tasks": "4.3.0",
"runtime.native.System": "4.3.0",
"runtime.native.System.Net.Http": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.2"
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Net.Primitives": {
Expand Down Expand Up @@ -3362,12 +3355,6 @@
"Ark.Reference.Common": "[0.9.1, )"
}
},
"ark.reference.core.database": {
"type": "Project",
"dependencies": {
"Microsoft.SqlServer.Dacpacs.Master": "[160.0.0, )"
}
},
"ark.reference.core.webinterface": {
"type": "Project",
"dependencies": {
Expand Down Expand Up @@ -3624,6 +3611,16 @@
"Rebus.SqlServer": "[8.1.2, )"
}
},
"ark.tools.reqnroll": {
"type": "Project",
"dependencies": {
"Ark.Tools.Http": "[1.0.0, )",
"FluentAssertions": "[6.12.1, )",
"FluentAssertions.Web": "[1.5.0, )",
"Microsoft.IdentityModel.JsonWebTokens": "[8.1.2, )",
"Reqnroll": "[2.1.1, )"
}
},
"ark.tools.simpleinjector": {
"type": "Project",
"dependencies": {
Expand Down Expand Up @@ -3658,16 +3655,6 @@
"Ark.Tools.Solid": "[1.0.0, )"
}
},
"ark.tools.specflow": {
"type": "Project",
"dependencies": {
"Ark.Tools.Http": "[1.0.0, )",
"FluentAssertions": "[6.12.1, )",
"FluentAssertions.Web": "[1.5.0, )",
"Microsoft.IdentityModel.JsonWebTokens": "[8.1.2, )",
"SpecFlow": "[3.9.74, )"
}
},
"ark.tools.sql": {
"type": "Project",
"dependencies": {
Expand Down
12 changes: 12 additions & 0 deletions Ark.ReferenceProject/Core/Ark.Reference.Core.Tests/reqnroll.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",
"language": {
"feature": "en-GB"
},
"generator": {
"addNonParallelizableMarkerForTags": [ "nonParallelizable" ]
},
"runtime": {
"missingOrPendingStepsOutcome": "Error"
}
}
Loading

0 comments on commit 403556d

Please sign in to comment.