Find Step Definition Usages does not always work and can lead to users believing a step definition isn't used anywhere. When the feature doesn't work, it shows which is completely misleading:
The SpecFlow output log shows:
In this particular case, I know this is false and the step definition belongs to several feature files. Whenever the SpecFlow output shows "Found 0 usages in 0 feature files", I know this is not working correctly - as such we have to use this as an indicator on whether or not to trust the result.
This is arguably one of the most important features with this VS add-in and it really needs to work 100%
Steps to Reproduce
This is the problem - it works sometime and others not. We have many different repos and each one may or may not work at seemingly random times. This affects multiple users for same and different repos and has always been an issue.
Are there additional debug logs we can enable for the extension to get more info to you?
Visual Studio v17.5.2
SpecFlow extension v2022.1.91.26832
Used Visual Studio
Visual Studio 2022
Are the latest Visual Studio updates installed?
Yes
SpecFlow Section in app.config or content of specflow.json
{ "$schema": "https://specflow.org/specflow-config.json", "livingDocGenerator": { "enabled": true, "filePath": "JLivingDoc\LivingDoc_[{now:MM-dd-yyyy_HH.mm.ss}].json" } }
Issue Description
Find Step Definition Usages does not always work and can lead to users believing a step definition isn't used anywhere. When the feature doesn't work, it shows which is completely misleading:![image](https://github.com/SpecFlowOSS/SpecFlow.VS/assets/48925899/787fc89c-b391-4db6-80f7-a20f4af6bbbd)
The SpecFlow output log shows:![image](https://github.com/SpecFlowOSS/SpecFlow.VS/assets/48925899/41c9f300-57ea-4be8-897f-4756db1c1d85)
In this particular case, I know this is false and the step definition belongs to several feature files. Whenever the SpecFlow output shows "Found 0 usages in 0 feature files", I know this is not working correctly - as such we have to use this as an indicator on whether or not to trust the result.
This is arguably one of the most important features with this VS add-in and it really needs to work 100%
Steps to Reproduce
This is the problem - it works sometime and others not. We have many different repos and each one may or may not work at seemingly random times. This affects multiple users for same and different repos and has always been an issue.
Are there additional debug logs we can enable for the extension to get more info to you?
Visual Studio v17.5.2 SpecFlow extension v2022.1.91.26832
Link to Repository Project
No response