1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
# frozen_string_literal: true
require 'rake/testtask'
require 'rubocop/rake_task'
require 'yard'
YARD::Rake::YardocTask.new(:doc) do |yard|
yard.files = Dir['lib/**/*.rb']
yard.options = [
'--markup', 'markdown',
'--readme', 'README.md',
'--files', 'NEWS.md,LICENSE',
'--output-dir', 'doc/yardoc'
]
end
Rake::TestTask.new(:test_unit) do |t|
t.test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
t.libs << 'test'
end
RuboCop::RakeTask.new(:test_style)
task test: %i[test_unit test_style]
task default: :test
|