Sha256: 0c6f8e8ddaa76db82a3ed3f4f8475e2d00cc26ecfbe15cceaf6392bd2f5714c0
Contents?: true
Size: 1.35 KB
Versions: 85
Compression:
Stored size: 1.35 KB
Contents
require "bundler/gem_tasks" desc "Run unit tests" task :test => 'test:unit' # ----- Test tasks ------------------------------------------------------------ require 'rake/testtask' namespace :test do task :ci_reporter do ENV['CI_REPORTS'] ||= 'tmp/reports' if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9' require 'ci/reporter/rake/test_unit' Rake::Task['ci:setup:testunit'].invoke else require 'ci/reporter/rake/minitest' Rake::Task['ci:setup:minitest'].invoke end end Rake::TestTask.new(:unit) do |test| Rake::Task['test:ci_reporter'].invoke if ENV['CI'] test.libs << 'lib' << 'test' test.test_files = FileList["test/unit/**/*_test.rb"] # test.verbose = true # test.warning = true end Rake::TestTask.new(:integration) do |test| Rake::Task['test:ci_reporter'].invoke if ENV['CI'] test.libs << 'lib' << 'test' test.test_files = FileList["test/integration/**/*_test.rb"] end Rake::TestTask.new(:all) do |test| Rake::Task['test:ci_reporter'].invoke if ENV['CI'] test.libs << 'lib' << 'test' test.test_files = FileList["test/unit/**/*_test.rb", "test/integration/**/*_test.rb"] end end # ----- Documentation tasks --------------------------------------------------- require 'yard' YARD::Rake::YardocTask.new(:doc) do |t| t.options = %w| --embed-mixins --markup=markdown | end
Version data entries
85 entries across 85 versions & 7 rubygems