Sha256: a3cc2d075d8897a1d80ffd4651f510cfeaad1a060ee00ba7953d454599d7ab81

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require 'benchmark'
require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs = ['lib', 'test']
  t.warning = false
  t.verbose = false
  t.test_files = FileList['./test/**/*_test.rb'] + FileList['./test/gem_test.rb']
end

desc 'Benchmark another task execution | usage example: benchmark[my_task, param1, param2]'
task :benchmark, [:task] do |task, args|
  task_name = args[:task]
  if task_name.nil?
    puts "Should select a task."
    exit 1
  end
  puts Benchmark.measure{ Rake::Task[task_name].invoke *args.extras }
end

task default: :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ae_easy-0.0.2 Rakefile