Sha256: 2b59b0c95a18d1cadde233daff5e9b195373805b438bd6a10a350d7fcb15b509
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
require 'rubocop/rake_task' require 'rspec/core/rake_task' require 'rake/testtask' require 'coveralls/rake/task' RuboCop::RakeTask.new(:rubocop) do |task| task.options = %w(--display-cop-names --format simple) task.patterns = ['bin/nanoc', 'lib/**/*.rb', 'spec/**/*.rb', 'test/**/*.rb'] end 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.verbose = false end desc 'Run all tests and specs' task test: [:spec, :'test:all', :'coveralls:push'] task default: [:test, :rubocop]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.4.0 | Rakefile |
nanoc-4.3.8 | Rakefile |