Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test execution is not able to find scenarios with example data specified #2722

Open
ashirulkar opened this issue Sep 20, 2023 · 1 comment
Open
Labels

Comments

@ashirulkar
Copy link

SpecFlow Version

3.9.74

Which test runner are you using?

xUnit

Test Runner Version Number

v3+

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Sdk-style project format

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Command line – PLEASE SPECIFY THE FULL COMMAND LINE

SpecFlow Section in app.config or content of specflow.json

dotnet test ..**\SpecflowTemplateTest.dll --no-build --filter “DisplayName=User should be able to sell a product one|Displayname=User should be able to sell a product twoProductName: “Newproduct””

Issue Description

For the scenarios with Examples (test data) the command is simply skipping execution of those scenarios since the names specified in the dotnet test has concatenated the example data to the test case name. e.g. dotnet test ..**\SpecflowTemplateTest.dll --no-build --filter “DisplayName=User should be able to sell a product one|Displayname=User should be able to sell a product twoProductName: “Newproduct””

Here in the 2nd step second Test of User should be able to sell a product twoProductName: “Newproduct” has test data of productName associated with it, when we execute this command it simply skips this scenario execution and execute only 1st scenario mentioned i.e. “User should be able to sell a product one” which is without example data.

Steps to Reproduce

Create the Scenario with Example
Run the scenario with above mentioned command

Link to Repro Project

No response

@ashirulkar ashirulkar added the Bug label Sep 20, 2023
@ashirulkar
Copy link
Author

Can someone please share the dotnet test command to execute the scenario filtering with DisplayName and has example specified?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant