formulahendry / vscode-dotnet-test-explorer

.NET Core Test Explorer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.dotnet-test-explorer
MIT License
203 stars 97 forks source link

gherkin/specflow test discovery #292

Open danieleades opened 3 years ago

danieleades commented 3 years ago

I'm wondering what configuration is required in order to discover specflow/BDD/gherkin tests?

i'm able to set up a project with some basic specflow tests by following - https://testautomation.org/setting-up-specflow-on-a-dotnet-core-project-using-visual-studio-code-with-linux-os/

I can run the tests with dotnet test but they are not discovered by this extension.

The configured glob pattern does match the *.csproj file in the project root.

obsean commented 3 years ago

I just had the same issue and found that you need to add a reference to https://www.nuget.org/packages/TestCentric.Metadata/ to your project

FYI I found this out by checking the logs and then running the same command in the same folder without the -v=q flag