Sha256: 931ac4c2609d5e92ae6600033821b7b1cbb28e878e70990481c7f444a79e0dc1

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 Bytes

Contents

require 'rspec/core/rake_task'
require 'rake/testtask'
require 'coveralls/rake/task'

Coveralls::RakeTask.new

SUBDIRS = %w(* base cli data_sources extra filters helpers).freeze

namespace :test do
  SUBDIRS.each do |dir|
    Rake::TestTask.new(dir == '*' ? 'all' : dir) do |t|
      t.test_files = Dir["test/#{dir}/**/*_spec.rb"] + Dir["test/#{dir}/**/test_*.rb"]
      t.libs = ['./lib', '.']
      t.ruby_opts = ['-r./test/helper']
    end
  end
end

RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = '-r ./spec/spec_helper.rb --format Fuubar --color'
  t.verbose = false
end

desc 'Run all tests and specs'
task test: [:spec, :'test:all', :'coveralls:push']

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-4.3.7 tasks/test.rake
nanoc-4.3.6 tasks/test.rake
nanoc-4.3.5 tasks/test.rake
nanoc-4.3.4 tasks/test.rake
nanoc-4.3.3 tasks/test.rake
nanoc-4.3.2 tasks/test.rake
nanoc-4.3.1 tasks/test.rake
nanoc-4.3.0 tasks/test.rake