-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Which argument to use for extraGlue option? #2845
Comments
You can use There is no equivalent of Leaving this open because it looks like the cucumber-core |
Thanks for the links. To add more context, my main class looks like this:
And i have no steps configuration, because as you can see I use the yaks library and further steps configuration is not needed in this project. Obviously running the integration tests using the class cause no problems, but I need a gradle config as well. I added the
into the gradle run config and this was the error I got:
I suppose the yaks standard library classes do not have the necessary annotations. I am not sure how can I tackle this problem. Any ideas are appreciated. |
As the error explains, you'll need a class with these annotation somewhere on your glue path:
Note that |
Understood. Now the task can be ran, but as I have no steps configuration (because I use yaks), thus the tests end with undefined step configuration results.
How can I integrate yaks steps into this task configuration in order to run the tests properly like I do it with the class config run? EDIT: I have figured it out:
Using multiple glue path configurations solved the problem. Thank you for help! |
I'd like to register a gradle task to run my integration tests with cucumber. The task definition looks like this:
In my project there are no steps definitions, because I use yaks standard library and provided that as an extraGlue cucumber option. Is there any way to include that option in here the task definition(e.g: '--cucumber.extraGlue', 'org.citrusframework.yaks.standard')? As i can see that in the README file this is not supperted yet. Is there any other alternative?
The text was updated successfully, but these errors were encountered: