SolidToken.SpecFlow.DependencyInjection
4.0.0-preview.1
Prefix Reserved
dotnet add package SolidToken.SpecFlow.DependencyInjection --version 4.0.0-preview.1
NuGet\Install-Package SolidToken.SpecFlow.DependencyInjection -Version 4.0.0-preview.1
<PackageReference Include="SolidToken.SpecFlow.DependencyInjection" Version="4.0.0-preview.1" />
paket add SolidToken.SpecFlow.DependencyInjection --version 4.0.0-preview.1
#r "nuget: SolidToken.SpecFlow.DependencyInjection, 4.0.0-preview.1"
// Install SolidToken.SpecFlow.DependencyInjection as a Cake Addin #addin nuget:?package=SolidToken.SpecFlow.DependencyInjection&version=4.0.0-preview.1&prerelease // Install SolidToken.SpecFlow.DependencyInjection as a Cake Tool #tool nuget:?package=SolidToken.SpecFlow.DependencyInjection&version=4.0.0-preview.1&prerelease
SpecFlow.DependencyInjection
SpecFlow plugin that enables to use Microsoft.Extensions.DependencyInjection for resolving test dependencies.
Currently supports (in preview):
- SpecFlow v4 or above
- Microsoft.Extensions.DependencyInjection v6.0.0 or above
Based on SpecFlow.Autofac. Listed on Available Plugins for SpecFlow.
Usage
Install plugin from NuGet into your SpecFlow project.
PM> Install-Package SolidToken.SpecFlow.DependencyInjection
Create a static method in your SpecFlow project that returns a Microsoft.Extensions.DependencyInjection.IServiceCollection
and tag it with the [ScenarioDependencies]
attribute.
Configure your test dependencies for the scenario execution within this method.
Step definition classes (i.e. classes with the SpecFlow [Binding]
attribute) are automatically added to the service collection.
A typical dependency builder method looks like this:
[ScenarioDependencies]
public static IServiceCollection CreateServices()
{
var services = new ServiceCollection();
// TODO: add your test dependencies here
return services;
}
Refer to SpecFlow.DependencyInjection.Tests
for an example.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- SpecFlow (>= 4.0.16-beta)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on SolidToken.SpecFlow.DependencyInjection:
Repository | Stars |
---|---|
corvus-dotnet/Corvus.JsonSchema
Support for Json Schema validation and entity generation
|
Version | Downloads | Last updated | |
---|---|---|---|
4.0.0-preview.1 | 48,789 | 12/19/2022 | |
3.9.3 | 1,236,340 | 5/22/2022 | |
3.9.2 | 651,338 | 11/16/2021 | |
3.9.1 | 74,099 | 9/3/2021 | |
3.9.0 | 59,404 | 6/18/2021 | |
3.8.0 | 23,008 | 5/19/2021 | |
3.7.5 | 1,388 | 5/19/2021 | |
3.7.4 | 584 | 5/19/2021 | |
3.7.3 | 553 | 5/19/2021 | |
3.7.2 | 566 | 5/19/2021 | |
3.7.0 | 25,109 | 3/10/2021 | |
3.6.0 | 3,087 | 3/10/2021 | |
3.5.0 | 13,055 | 3/10/2021 | |
1.0.1 | 651 | 3/10/2021 | |
0.6.0 | 19,569 | 11/11/2020 | |
0.5.0 | 10,224 | 11/10/2020 | |
0.4.1 | 53,461 | 2/25/2020 | |
0.4.0 | 663 | 2/24/2020 | |
0.3.2 | 720 | 2/17/2020 | |
0.3.1 | 773 | 2/16/2020 | |
0.2.4 | 3,703 | 10/30/2019 | |
0.2.2 | 5,872 | 7/17/2019 | |
0.2.1 | 747 | 7/9/2019 | |
0.2.0 | 692 | 7/8/2019 | |
0.1.3 | 701 | 7/3/2019 | |
0.1.2 | 738 | 7/1/2019 |