ttutisani / Xunit.Gherkin.Quick

BDD in .NET Core - using Xunit and Gherkin (compatible with both .NET Core and .NET)
MIT License
205 stars 29 forks source link

Fail to discover feature file if tab character is in between "And" keyword and step definition #115

Open arnoldasgudas opened 3 years ago

arnoldasgudas commented 3 years ago

I noticed that the feature file is not discoverable by the test runner if the tab character is used in step definition after the "And" keyword.

Screenshot 2021-02-25 135930

When running dotnet test command, it returns "No test is available in..."

See feature definition here: https://github.com/arnoldasgudas/Xunit.Gherkin.Quick.Demo/blob/main/AddTwoNumbers.feature#L9

ttutisani commented 3 years ago

That makes sense and I hope this can be fixed. When time allows, I will verify the reason behind the non-discoverable feature file. If the Gherkin parser is not able to recognize the text as a valid Gherkin, then I won't be able to do much about it. If it's the XGQ framework, then I can fix it. Either way, I will try to do what I can. Thanks for reporting it!