質問

In order to localize my Gherkin scripts, I added #language:ru comment at the very top of each .feature file and started using localized names for steps and scenarios.

However, this comments lingers(and it is visible right under feature name) in resulting html document after using yard-cucumber plugin to document my scripts. It also adds lines like features/category_info.feature:3 after each Background/Scenario block. Is it some osrt of debugging mode? I create documentation using "yardoc -c" command, yard-cucumber plugin is autoloaded.

Am I missing something? How do I make yard omit these artifacts?

役に立ちましたか?

解決 2

Turns out, these artifacts appear only when using yard server --reload, generated HTML files don't have this problem.

他のヒント

Run cucumber with -q to quiet the output regarding the feature/step/line number information.

I don't think you can get rid of the language comment.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top