Skip to content

Commit

Permalink
Run tests 100 times.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahchen6 committed Feb 14, 2025
1 parent 632b334 commit 569a3a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/github.rake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ namespace :github do
env = { 'BUNDLE_GEMFILE' => task['gemfile'] }
cmd = "bundle exec rake spec:#{task['task']}"

Bundler.with_unbundled_env { sh(env, cmd) }
100.times do |i|
puts "Running iteration #{i + 1}/100."
tests_passed = Bundler.with_unbundled_env { system(env, cmd) }
break unless tests_passed
end
end
end

Expand Down

0 comments on commit 569a3a3

Please sign in to comment.