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