Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit daa5409

Browse files
authored
Support SpecFlow v4 (#97)
Requires .NET Framework v4.6.2 or above. Requires .NET 6.0.0 or above. +semver: major
1 parent 074d885 commit daa5409

File tree

5 files changed

+22
-32
lines changed

5 files changed

+22
-32
lines changed

GitVersion.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_BUILDID ??
44
assembly-informational-format: '{SemVer}+{ShortSha}'
55
continuous-delivery-fallback-tag: preview
66
branches:
7-
main:
8-
regex: ^main$
9-
develop:
10-
regex: ^dev$
7+
feature:
8+
tag: alpha.{BranchName}
119
pull-request:
1210
tag: pr

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
SpecFlow plugin that enables to use Microsoft.Extensions.DependencyInjection for resolving test dependencies.
99

10-
Currently supports:
11-
* [SpecFlow v3.9.8](https://www.nuget.org/packages/SpecFlow/3.9.8) or above
12-
* [Microsoft.Extensions.DependencyInjection v3.1.0](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/3.1.0) or above
10+
Currently supports *(in preview)*:
11+
* [SpecFlow v4](https://www.nuget.org/packages/SpecFlow/4) or above
12+
* [Microsoft.Extensions.DependencyInjection v6.0.0](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/6.0.0) or above
1313

1414
Based on [SpecFlow.Autofac](https://github.com/gasparnagy/SpecFlow.Autofac).
1515
Listed on [Available Plugins for SpecFlow](https://specflow.org/documentation/Available-Plugins/).

SpecFlow.DependencyInjection.Tests/SpecFlow.DependencyInjection.Tests.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net6.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<Product>SpecFlow.DependencyInjection</Product>
77
<RootNamespace>SolidToken.SpecFlow.DependencyInjection.Tests</RootNamespace>
88
<AssemblyName>SolidToken.SpecFlow.DependencyInjection.Tests</AssemblyName>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="GitVersion.MsBuild" Version="5.7.0">
12+
<PackageReference Include="SpecFlow" Version="4.*-*" />
13+
<PackageReference Include="SpecFlow.xUnit" Version="4.*-*" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
15+
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
16+
<PackageReference Include="xunit" Version="2.4.2" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1318
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1419
<PrivateAssets>all</PrivateAssets>
1520
</PackageReference>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
17-
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
18-
<PackageReference Include="SpecFlow" Version="3.9.8" />
19-
<PackageReference Include="xunit" Version="2.4.1" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
21+
<PackageReference Include="coverlet.collector" Version="3.2.0">
2122
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2223
<PrivateAssets>all</PrivateAssets>
2324
</PackageReference>
24-
<PackageReference Include="SpecFlow.xUnit" Version="3.9.8" />
25-
<PackageReference Include="coverlet.collector" Version="3.1.0">
25+
<PackageReference Include="GitVersion.MsBuild" Version="5.11.1">
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>
2929
</ItemGroup>
3030

3131
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' ">
32-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
32+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
3333
<PrivateAssets>all</PrivateAssets>
3434
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3535
</PackageReference>

SpecFlow.DependencyInjection/SpecFlow.DependencyInjection.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
<None Include="build/*" Pack="true" Visible="true" PackagePath="build/" />
3232
</ItemGroup>
3333
<ItemGroup>
34-
<PackageReference Include="GitVersion.MsBuild" Version="5.7.0">
35-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
36-
<PrivateAssets>all</PrivateAssets>
37-
</PackageReference>
38-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
34+
<PackageReference Include="SpecFlow" Version="4.*-*" />
35+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
3936
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
4037
<PrivateAssets>all</PrivateAssets>
4138
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4239
</PackageReference>
43-
<PackageReference Include="SpecFlow" Version="3.9.8" />
40+
<PackageReference Include="GitVersion.MsBuild" Version="5.11.1">
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
<PrivateAssets>all</PrivateAssets>
43+
</PackageReference>
4444
</ItemGroup>
4545
</Project>

azure-pipelines.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,14 @@ stages:
3232
jobs:
3333
- job: Build
3434
steps:
35-
- task: UseDotNet@2
36-
displayName: '.NET SDK 3.1 (until December 3, 2022)'
37-
inputs:
38-
version: 3.1.x
39-
- task: UseDotNet@2
40-
displayName: '.NET SDK 5.0 (until May 8, 2022)'
41-
inputs:
42-
version: 5.0.x
4335
- task: UseDotNet@2
4436
displayName: '.NET SDK 6.0 (until November 8, 2024)'
4537
inputs:
4638
version: 6.0.x
4739
- task: gitversion/setup@0
4840
displayName: 'Prepare'
4941
inputs:
50-
versionSpec: '5.x'
42+
versionSpec: '5.11.1'
5143
- task: gitversion/execute@0
5244
name: 'Version'
5345
- task: DotNetCoreCLI@2

0 commit comments

Comments
 (0)