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

Commit

Permalink
Support SpecFlow v4
Browse files Browse the repository at this point in the history
Requires .NET Framework v4.6.2 or above.
Requires .NET 6.0.0 or above.

+semver: major
  • Loading branch information
mbhoek committed Dec 19, 2022
1 parent 074d885 commit 92c3888
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 32 deletions.
6 changes: 2 additions & 4 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_BUILDID ??
assembly-informational-format: '{SemVer}+{ShortSha}'
continuous-delivery-fallback-tag: preview
branches:
main:
regex: ^main$
develop:
regex: ^dev$
feature:
tag: alpha.{BranchName}
pull-request:
tag: pr
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

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

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

Based on [SpecFlow.Autofac](https://github.com/gasparnagy/SpecFlow.Autofac).
Listed on [Available Plugins for SpecFlow](https://specflow.org/documentation/Available-Plugins/).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Product>SpecFlow.DependencyInjection</Product>
<RootNamespace>SolidToken.SpecFlow.DependencyInjection.Tests</RootNamespace>
<AssemblyName>SolidToken.SpecFlow.DependencyInjection.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Version="5.7.0">
<PackageReference Include="SpecFlow" Version="4.*-*" />
<PackageReference Include="SpecFlow.xUnit" Version="4.*-*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.0" Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' == 'Unix'" />
<PackageReference Include="SpecFlow" Version="3.9.8" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="coverlet.collector" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="SpecFlow.xUnit" Version="3.9.8" />
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PackageReference Include="GitVersion.MsBuild" Version="5.11.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' ">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions SpecFlow.DependencyInjection/SpecFlow.DependencyInjection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
<None Include="build/*" Pack="true" Visible="true" PackagePath="build/" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Version="5.7.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
<PackageReference Include="SpecFlow" Version="4.*-*" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SpecFlow" Version="3.9.8" />
<PackageReference Include="GitVersion.MsBuild" Version="5.11.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>
10 changes: 1 addition & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,14 @@ stages:
jobs:
- job: Build
steps:
- task: UseDotNet@2
displayName: '.NET SDK 3.1 (until December 3, 2022)'
inputs:
version: 3.1.x
- task: UseDotNet@2
displayName: '.NET SDK 5.0 (until May 8, 2022)'
inputs:
version: 5.0.x
- task: UseDotNet@2
displayName: '.NET SDK 6.0 (until November 8, 2024)'
inputs:
version: 6.0.x
- task: gitversion/setup@0
displayName: 'Prepare'
inputs:
versionSpec: '5.x'
versionSpec: '5.11.1'
- task: gitversion/execute@0
name: 'Version'
- task: DotNetCoreCLI@2
Expand Down

0 comments on commit 92c3888

Please sign in to comment.