1 | initial version |
To pass cucumber tags in GitLab CI, you can add the following script in your .gitlab-ci.yml
file:
cucumber:
script:
- bundle exec cucumber --tags "your_cucumber_tags"
Replace "your_cucumber_tags"
with the tags you want to use to run your cucumber tests.
You can also use environment variables to pass cucumber tags dynamically:
cucumber:
script:
- bundle exec cucumber --tags "$CI_COMMIT_TAG"
In the above example, the $CI_COMMIT_TAG
variable is used to pass the cucumber tags dynamically based on the current Git commit tag.
Note: Make sure to update the script
section according to your project setup.