-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feature file and test not discovered by test runner #82
Comments
Thank you @cathalmchale , this is a useful finding! |
No problem @ttutisani thanks for the framework, I'm enjoying using BDD for the first time! Main issues
|
@cathalmchale all great points! I guess each of these would be either added to the existing docs or created as a separate doc, case-by-case. Regardless, all your findings will be incorporated into documentation at some point, because they can help somebody in the future. |
@ttutisani will try make a contribution in the markdown help. shouldn't take long. One more for luck that might catch a few:
|
Yes, absolutely, I already saw that issue but it's not mentioned in the docs. ReSharper test runner is not friendly with Xunit.Gherkin.Quick because it does not honor everything that Xunit has and this framework uses to run. |
@cathalmchale I think this issue can be closed as all reported items were addressed in your recent PR. Is there anything left in here that is not yet addressed? |
All good. Thanks. |
The Features text files are very particular about text encoding.
I had an issue where a new Feature file and corresponding test class would not be discovered and would not run (locally or on build box). But many existing features existed and run without issue.
I created new files with new names and cleaned up the text and simplified the Feature and test to absolute basics. Nothing worked, the test would not be discovered.
So I took a Feature file that I knew worked and copied it as a starting point. Then manually edited it so that it eventually looked like the one the didn't work. But this time the test could be discovered and run, without issue.
Looking at the two files (Working.feature and NotWorking.feature) in Notepadd++ with special chars highlighted or in BeyondCompare revealed nothing useful. However, I don't doubt that there was something abnormal about the encoding.
Summary
If you have a Feature file that refuses to be discovered by the test runner, but have other files that are being discovered fine, copy one of the good ones as a starting place and avoid copy-paste from PDFs etc.
The text was updated successfully, but these errors were encountered: