daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest May 16th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require_relative 'task_helpers'
  2.  
  3. desc 'Repeat e2e spec(s) until failure (default :max_number_of_repetitions = 100)'
  4. task :repeat, [:max_number_of_repetitions] do |_t, args|
  5.     maximum_repetitions = args[:max_number_of_repetitions] ? args[:max_number_of_repetitions].to_i : 100
  6.     test_run = 'docker-compose run --rm testrunner bundle exec rspec spec'
  7.  
  8.     Console.log_info "\n Executing #{maximum_repetitions} times (or until failure):"
  9.     Console.log_info "\n\t '#{test_run}'"
  10.  
  11.     TaskHelpers.repeat_until_failure(test_run, maximum_repetitions)
  12. end
RAW Paste Data
Top