File: Rakefile

package info (click to toggle)
ruby-rqrcode-core 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 512 kB
  • sloc: ruby: 2,289; makefile: 4; sh: 4
file content (34 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
begin
  require "rake/testtask"
  require "standard/rake"

  Rake::TestTask.new(:test) do |t|
    t.libs << "test"
    t.libs << "lib"
    t.test_files = FileList["test/**/*_test.rb"]
  end

  task default: [:test, "standard:fix"]

  namespace :benchmark do
    desc "Run simple comparison benchmark"
    task :simple do
      ruby "test/benchmark_simple.rb"
    end

    desc "Run detailed performance benchmark (benchmark-ips)"
    task :performance do
      ruby "test/benchmark_performance.rb"
    end

    desc "Run memory profiling benchmark"
    task :memory do
      ruby "test/benchmark_memory.rb"
    end

    desc "Run all benchmarks"
    task all: [:simple, :performance, :memory]
  end
rescue LoadError
  # no standard/rspec available
end