Sha256: b79ff3efd90e4b6fda4d50198fefd7c8c83ccb5d8cbce365f6e58f1e139f4167

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

#!/usr/bin/env rake

require 'assert/rake_tasks'
Assert::RakeTasks.for(:test)

require 'bundler/gem_tasks'

task :default => :build

namespace :bench do

  desc "Run the bench script."
  task :run do
    require 'bench/bench_runner'
    OsheetXmlssBenchRunner.new
  end

  desc "Run the profiler on 1000 rows."
  task :profiler do
    require 'bench/profiler_runner'
    runner = OsheetXmlssProfilerRunner.new(1000)
    runner.print_flat(STDOUT, :min_percent => 3)
  end

  desc "Run the example workbook builds."
  task :examples do
    require 'examples/trivial'
    require 'examples/basic'
    require 'examples/basic_with_templates'
    require 'examples/formats'
    require 'examples/formula'
    require 'examples/styles'
  end

  desc "Run all the tests, then the example builds, then the profiler."
  task :all do
    Rake::Task['test'].invoke
    Rake::Task['bench:run'].invoke
    Rake::Task['bench:profiler'].invoke
    Rake::Task['bench:examples'].invoke
  end


end

task :bench do
  Rake::Task['bench:run'].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
osheet-xmlss-1.0.0.rc.1 Rakefile