Skip to content

Commit 631284b

Browse files
committed
Begrudgingly default to a retry on cucumber tests
Flaky cukes have been bugging us. A lot, sadly. Yes they should be fixed but they seem rather hard to fix/not straight forward/ easy and it's a pretty bad experience for new contributors to have their stuff fail to begin with. Hence, retrying is the pragmatic approach here.
1 parent e1c4f48 commit 631284b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ rescue LoadError
2525
end
2626

2727
require "cucumber/rake/task"
28-
Cucumber::Rake::Task.new
28+
Cucumber::Rake::Task.new do |t|
29+
t.cucumber_opts = %w[--retry 3]
30+
end
2931

3032
task default: %i[rubocop spec cucumber]

0 commit comments

Comments
 (0)