Cross Platform Scenarios / Shared Location with Feature Files #1072
Replies: 4 comments 2 replies
|
Keep in mind:
An alternate approach to consider is to consolidate your scenarios and tag them and then use tag filtering when executing on each specific platform. |
|
@clrudolphi , I refactor the solution a bit based on your comments: My solution has 3 projects
The scenarios project has reqnroll.json containing: Furthermore project has one feature file containing: When building the following warning appears: Any help would be appreciated |
|
@clrudolphi , I have updated my previous comment. Also when adding these project references to the step assembly projects the project binding could not be discovered. I have a cross platform environment with a shared project containing feature files of which scenario can run on a Linux platform and Windows platform. The steps files are implemented in 2 separate projects targeting net8.0 and net8.0-windows for the linux steps and net8.0-windows only for Windows steps. Any help would be appreciated |
|
Sorry to just sneak into the discussion, but linked feature files are supported since v3.3, you just need to enable |
Uh oh!
There was an error while loading. Please reload this page.
My VS solution contains the following .NET projects:
Furthermore I am using reqnroll 3.x
I want to run these scenarios as follows:
dotnet test GherkinSuites.Runner.Windows.dlldotnet test GherkinSuites.Runner.Linux.dllWhere both dlls (should) contain scenarios from the shared GherkinSuites project.
How can make sure that generated code behind files from feature files (GherkinSuites project) end up in the 2 runner projects so that I am able to run the tests with above commands?
The issue is that reqnroll recognizes the steps from TestStepDefinitions.Lib.Linux, but not from TestStepDefinitions.Lib.Windows.
What I want to achieve one shared location for feature files and separating the test step over multiple projects based on target framework.
Any help is appreciated.
All reactions