Sha256: 6a4286e6cb741050259511abb630104d11f694ba40185b39978de7b95375f3bf

Contents?: true

Size: 785 Bytes

Versions: 24

Compression:

Stored size: 785 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

require 'fileutils'
require 'rake/testtask'
require 'rake/clean'

task test: [:base_test]

desc 'Run test_unit based test'
Rake::TestTask.new(:base_test) do |t|
  # To run test for only one file (or file path pattern)
  #  $ bundle exec rake base_test TEST=test/test_specified_path.rb
  #  $ bundle exec rake base_test TEST=test/test_*.rb
  t.libs << "test"
  t.test_files = Dir["test/**/test_*.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 test with simplecov'
task :coverage do |t|
  ENV['SIMPLE_COV'] = '1'
  Rake::Task["test"].invoke
end

task default: [:test, :build]

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
fluentd-0.12.43 Rakefile
fluentd-0.12.42 Rakefile
fluentd-0.12.41 Rakefile
fluentd-0.12.40 Rakefile
fluentd-0.12.39 Rakefile
fluentd-0.12.38 Rakefile
fluentd-0.12.37 Rakefile
fluentd-0.12.36 Rakefile
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/fluentd-0.12.35/Rakefile
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/fluentd-0.12.35/Rakefile
fluentd-0.12.35 Rakefile
fluentd-0.12.34 Rakefile
fluentd-0.12.33 Rakefile
fluentd-0.12.32 Rakefile
fluentd-0.12.31 Rakefile
fluentd-0.12.30 Rakefile
fluentd-0.12.28 Rakefile
fluentd-0.12.27 Rakefile
fluentd-0.12.26 Rakefile
fluentd-0.12.25 Rakefile