我正在尝试正确设置我的保护文件,以便通常只运行正在进行的黄瓜功能。然后,一旦它们完成,我想(手动)运行我的所有功能。我已经修改了我的保护文件来拥有它,但是 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 方法是如何工作的?