2

通常、進行中のキュウリ機能のみを実行するために、ガードファイルを正しくセットアップしようとしています。次に、それらが完了したら、すべての機能を (手動で) 実行したいと考えています。これを含むようにガード ファイルを変更しましたが、run_all が機能しません。@wip 機能を実行するだけです。

guard 'cucumber', :cli => "--no-profile --tags @wip --format 'pretty'", :run_all => { :cli => "--no-profile --color --format 'progress' --strict" } do
  watch(%r{^features/.+\.feature$})
  watch(%r{^features/support/.+$})          { 'features' }
  watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end

:run_all メソッドはどのように機能しますか?

4

2 に答える 2

1

それぞれのフォーマットを定義する必要がありました。

guard 'cucumber', :cli => "--no-profile --tags @wip --format 'pretty'", :run_all => { :cli => "--no-profile -f Cucumber::Formatter::Fuubar features" } do
  watch(%r{^features/.+\.feature$})
  watch(%r{^features/support/.+$})          { 'features' }
  watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
于 2011-10-06T20:54:04.970 に答える
0

@wip 以外のすべてを実行しようとしている場合は、~@wip を追加する必要があります

于 2011-08-31T05:43:40.870 に答える