How can cucumber tags be passed in Gitlab CI?
How can cucumber tags be passed in Gitlab CI?
How can cucumber tags be passed in Gitlab CI?
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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-11-19 11:00:00 +0000
Seen: 11 times
Last updated: Nov 19 '22
How can Gitlab CI be utilized for ASP.NET Core 7 by utilizing Docker Images on an on-premise server?
What is the blend of manual and trigger in GITLAB?
What is the process of building projects that are dependent on each other in GitLab CI?
How can GitLab LFS be restored manually?
What is the Xpath to locate an element that exists within two distinct self-closing tags?