-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
43 lines (32 loc) · 915 Bytes
/
Rakefile
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
33
34
35
36
37
38
39
40
41
42
43
# frozen_string_literal: true
require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks
require 'inch/rake'
Inch::Rake::Suggest.new(:inch)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new(:yard)
require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new(:yardstick_measure) do |measurement|
measurement.output = 'coverage/docs.txt'
end
require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new(:yardstick_verify) do |verify|
verify.threshold = 100
end
task yardstick: %i[yardstick_measure yardstick_verify]
task :mutant do
command = [
'bundle exec mutant',
'--include lib',
'--require interactor-contracts',
'--use rspec',
'Interactor::Contracts*'
].join(' ')
system command
end
task default: %i[spec rubocop yard inch]