Sha256: da527c3559ac8cc9d5271c535adf1492c6beae6e6f84faa02641edab18925555
Contents?: true
Size: 906 Bytes
Versions: 5
Compression:
Stored size: 906 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require 'fileutils' require 'rake/testtask' require 'rake/clean' require 'rspec/core' require 'rspec/core/rake_task' task :test => [:base_test, :spec] desc 'Run test_unit based test' Rake::TestTask.new(:base_test) do |t| t.libs << "test" t.test_files = (Dir["test/test_*.rb"] + Dir["test/plugin/test_*.rb"] - ["helper.rb"]).sort t.verbose = true #t.warning = true end task :parallel_test do FileUtils.rm_rf('./test/tmp') sh("parallel_test ./test/*.rb ./test/plugin/*.rb") FileUtils.rm_rf('./test/tmp') end desc 'Run rspec based test' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = %w[-c -f progress -r ./spec/spec_helper.rb] t.pattern = 'spec/**/*_spec.rb' t.verbose = true end desc 'Run rspec with simplecov' task :coverage do |t| ENV['SIMPLE_COV'] = '1' Rake::Task["spec"].invoke end task :default => [:test, :build]
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fluentd-0.10.50 | Rakefile |
fluentd-0.10.49 | Rakefile |
fluentd-0.10.48 | Rakefile |
fluentd-0.10.47 | Rakefile |
fluentd-0.10.46 | Rakefile |