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

Feature files not discovered by test explorer in Visual Studio v. 17.6.2 #142

Closed Daniel8770 closed 1 year ago

Daniel8770 commented 1 year ago

Hi,

I recently updated my Visual Studio from version 17.4.1 to 17.6.2 which resulted in the test explorer not finding my feature files.

I can run my feature files in the command line using 'dotnet test', so it seems like it's an issue with the test explorer only.

Nothing was changed, except the update of Visual Studio.

I use the following feature file attribute: [FeatureFile(@".*\.feature", FeatureFilePathType.Regex)].

I have Xunit.Gherkin.Quick cloned and am currently not using the NuGet package.

ttutisani commented 1 year ago

Do the tests in ProjectConsumer project pass with the new version of visual studio? Since you have the clone of the repo, you should be able to open the main solution file (Xunit.Gherkin.Quick.sln) and verify that the ProjectConsumer tests are working fine.

Daniel8770 commented 1 year ago

Thanks for the answer. The problem seemed to fix itself after uninstalling the update and installing it again. I am now able to see and run the tests.

ttutisani commented 1 year ago

Thank you! I will be closing the ticket.