Rakefile
1# frozen_string_literal: true
2
3require "rake/testtask"
4
5Rake::TestTask.new(:test) do |t|
6 ENV["RANTLY_VERBOSE"] = "0" unless ENV["RANTLY_VERBOSE"]
7 ENV["RANTLY_COUNT"] = "10" unless ENV["RANTLY_COUNT"]
8
9 t.libs << "test"
10 t.libs << "lib"
11 t.test_files = FileList["test/**/test_*.rb"]
12 t.warning = false
13end
14
15task :entr do
16 sh "sh", "-c", "git ls-files | entr -s 'rubocop && rake test'"
17end
18
19task default: :test