ERB预处理ruby代码

cucumber.yml 文件能够用erb预处理,这样容许你在cucumber.yml文件中使用ruby代码生成值。因此若是你有几个配置要用相同值时,你能够这样写html

# config/cucumber.yml
##YAML Template
---
<% common = "--tags ~@wip --strict" %>
default: <%= common %> features  
html_report: <%= common %> --format html --out=features_report.html features  
相关文章
相关标签/搜索