-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support for finding steps which do not match without .yml file #136
Comments
The only thing which is in place right now and comes close to what you want is the Dry run feature. However, I think that does not fit your use-case perfectly. The dry-run feature is somehow weird that's why this issue exists: #35 How would you expect such a feature to behave? |
If you don't mind, could you explain what the dry-run does/ is supposed to do? I'm not quite understanding it from the documentation. Specifically, I don't understand this part of the dry-run documentation, It seems that --dry-run does the same thing as --profile and --user-data ??? Which doesn't make any sense to me:
Also, the way I would imagine this feature looking like is something along the lines of
And printed would be a list of steps which are not implemented in the specified feature file(s). Right now, radish throws an error when you give it a feature file which has an unmatched step. It will throw an error and show you the first step which is unmatched. If you have multiple unmatched steps, after fixing the previous unmatched step, it will throw an error on the next unmatched step and show you it, until finally it matches all steps and then begins test executions. So I think bundling that up into a CLI argument that does just verifying matching for all steps and printing them out to console (with an optional report format file, maybe) would be a nice complement to the step testing suite. Also if you wanted to get really fancy, you could suggest fixing closely matched steps based on a cosine similarity between the test step and the step implementation regex. |
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Hi @davidghiurco, I added there steps generator also: Running the runner https://github.com/nokia/radish-bdd-extensions/blob/master/pkg_radish_ext/radish_ext/tools/main_radish_ext.py Best Regards, |
This Issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days |
I am aware of matching testing functionality under the Testing Step Patterns heading in the radish documentation.
Right now, one needs to write a .yml file which would describe what functions a step sentence should match. And that's greatly useful for thorough testing. Especially useful when there exist very similar step scenarios with slightly different wording and such.
However, this testing strategy is a bit bulky and cumbersome in same cases. What I if I just want to execute a command to find steps which do not have a matching implementation yet?
Right now the only way I'm aware to do that (and correct me if I'm wrong) is to outright run radish on a feature file with the corresponding step file(s) and if it does not match all step sentences it will throw an error. However if it does match everything, it will start executing the steps, which you might not want if you're just trying to figure out if a step has a matching implementation.
Just a feature suggestion for future releases (unless it already exists and I just blatantly missed it)
🥇
The text was updated successfully, but these errors were encountered: