【问题标题】:Is there a way to run gherkin lint for committed files?有没有办法为提交的文件运行 gherkin lint?
【发布时间】:2022-08-02 18:25:49
【问题描述】:

我正在为我的 wdio/cucumber-framework 使用 gherkin-lint,我只想为提交的文件运行 gherkin lint。

我试过使用 lint 命令,它适用于所有文件,而不仅仅是提交的文件?

    标签: bdd lint gherkin


    【解决方案1】:

    如果您不反对使用另一个 gherkin linter,请尝试 reformat-gherkin 和 pre-commit。他们的仓库有说明:https://github.com/ducminh-phan/reformat-gherkin

    如果这对您的工作流程来说变化太大,这里是使用 git hook 使用 gherkin-lint 的指南,尽管它有更多的步骤并且不会为您的合作者复制:https://qaankush.medium.com/governance-of-cucumber-projects-using-git-hooks-and-gherkin-lint-69e199045695

    【讨论】:

      猜你喜欢
      • 2015-03-26
      • 2010-10-12
      • 2019-07-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-02
      • 1970-01-01
      • 2013-08-10
      相关资源
      最近更新 更多