-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (27 loc) · 762 Bytes
/
Rakefile
File metadata and controls
34 lines (27 loc) · 762 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
33
34
# encoding: utf-8
require "rubygems"
require "bundler/setup"
# Loads bundler tasks
Bundler::GemHelper.install_tasks
# Loads the Hexx::RSpec and its tasks
begin
require "hexx-suit"
Hexx::Suit.install_tasks
rescue LoadError
require "hexx-rspec"
Hexx::RSpec.install_tasks
end
desc "Runs specs and check coverage"
task :default do
system "bundle exec rake test:coverage:run"
end
desc "Runs mutation metric for testing"
task :mutant do
system "MUTANT=true mutant -r rom-kafka --use rspec ROM::Kafka* --fail-fast"
end
desc "Exhort all evils"
task :exhort do
system "MUTANT=true mutant -r rom-kafka --use rspec ROM::Kafka*"
end
desc "Runs all the necessary metrics before making a commit"
task prepare: %w(exhort check:inch check:rubocop check:fu)