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
How to use tag in my function scenario Cucumber.js? #469
Comments
Tags are used for choosing what scenarios to run when executing cucumber-js (see the README). Currently steps don't have any way of telling what scenario they are currently being run for. All steps under a scenario will share a world instance (accessed through |
Solved : I added :
and my function :
|
@jechazelle thanks for posting your solution I need the same functionality for a different use case :) |
In cucumber-js 3.2.1 I to use
The reason I'm using it is because a particular step implementation is failing for a known subset of scenarios, so I've created a non-critical defect ticket in our tracking system, tagged the failing scenarios with the ticket# and then added logic in the step implementation to return 'pending' if this.tags contains the ticket number. This allows out build to go back to green, while the powers that be decide if they want to fix the defect or not. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
How to know the scenario that calls my function ? How to use the tags in my function scenario ?
Actually I have one scenario :
I would like to use my tag @CreateModule in my function Then :
I would like to get my tag @CreateModule, to specify the scenario called, or other alternative, I would like to know what scenarios call my function.
The text was updated successfully, but these errors were encountered: