forked from mime-types/ruby-mime-types
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.autotest
More file actions
35 lines (30 loc) · 703 Bytes
/
.autotest
File metadata and controls
35 lines (30 loc) · 703 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
35
# frozen_string_literal: true
require 'autotest/bundler'
require 'autotest/restart'
require 'autotest/timestamp'
def require_plugin(resource)
require resource
rescue LoadError
false
end
require_plugin 'autotest/clear'
Autotest.add_hook :initialize do |at|
# at.testlib = "minitest/unit"
#
# at.extra_files << "../some/external/dependency.rb"
#
# at.libs << ":../some/external"
#
# at.add_exception "vendor"
#
# at.add_mapping(/dependency.rb/) do |f, _|
# at.files_matching(/test_.*rb$/)
# end
#
# %w(TestA TestB).each do |klass|
# at.extra_class_map[klass] = "test/test_misc.rb"
# end
end
# Autotest.add_hook :run_command do |at|
# system "rake build"
# end