Specflow Base as nuget?
AnsweredHello Everyone,
I'm at the moment of creation my test framework. The goal is to have whole Framework in external repository, and published as a nuget. would be possible to use my specflow base where i've defined whole logic be used later on in tests as a nuget?
-
SpecFlow supports bindings from external assemblies (https://docs.specflow.org/projects/specflow/en/latest/Bindings/Use-Bindings-from-External-Assemblies.html).
So distributing steps and hooks via NuGet package is possible.
I would recommend, that you do the configuration of the external assembly via a runtime plugin (like https://github.com/SpecFlowOSS/SpecFlow.Actions/blob/main/Plugins/SpecFlow.Actions.Docker/SpecFlow.Actions.Docker/DockerRuntimePlugin.cs#L20), so it is enough to add the NuGet package to your project.
0
Please sign in to leave a comment.
Comments
1 comment