-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (26 loc) · 680 Bytes
/
Rakefile
File metadata and controls
32 lines (26 loc) · 680 Bytes
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
27
28
29
30
31
32
# frozen_string_literal: true
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
require "rubocop/rake_task"
desc "Test fustigit"
namespace :test do
Rake::TestTask.new(:spec) do |test|
test.libs << "spec"
test.pattern = "spec/**/*_spec.rb"
test.verbose = false
test.warning = false
end
desc "Test fustigit and calculate test coverage"
task :coverage do
ENV["COVERAGE"] = "true"
Rake::Task["test:spec"].invoke
end
end
desc "Run RuboCop"
RuboCop::RakeTask.new(:rubocop) do |task|
task.options << "--display-cop-names"
end
desc "Run all spec tests and linters"
task check: %w[test:spec rubocop]
task default: :check