-
Notifications
You must be signed in to change notification settings - Fork 83
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 dry-run to print undefined steps #68
Comments
That's a wonderful idea! Contributions are welcome. |
@TitouanVanBelle Should undefined steps in the dry run be a test failure? I think it would be good to fail each scenario that has undefined steps. That way you can do a dry run, if there are no failures you can do the real run. On failures you can skip the long run, which can speed up people's CI processes. |
Could be an idea yeah, but I don't really see the dryRun as a feature that you would use on a CI. I personally use it to implement new scenarios but as soon as the code hit the CI I would assume all the steps are already defined. |
On our team we have people writing the feature files before other people write the step definitions. We use tags to make sure scenarios with incomplete step definitions are not run. Sometimes they forget the tags and we have to wait until the whole run is done to see that a failure was just because of a missing step definition. Ideally we would do a step definition check as part of a normal run and fail early there as well, but that's a bigger architectural change. I'm fine with just setting up stuff locally to run a normal run after a successful dry run. |
Ah ok got it. Then yeah, it would be good to fail the run if there are undefined steps. |
Released as part of 1.3.0. 🎉 |
It would be nice to be able to scan through all the scenarios to make sure all steps are defined.
Given the following scenario
When I set
Cucumberish.instance().dryRun
totrue
And I run the tests
Then it should pass and print the following in the console
The text was updated successfully, but these errors were encountered: