-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tconsole
48 lines (41 loc) · 1.47 KB
/
.tconsole
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
44
45
46
47
48
TConsole::Config.run do |config|
# Configures the directory where your tests are located
config.test_dir = "./test"
# Include paths that should be added to Ruby's load path
config.include_paths = ["./test", "./lib"]
# Paths that should be preloaded. You'll have to run the reload
# command to reload these paths in TConsole
config.preload_paths = ["./config/application"]
# File sets are the named sets of files that can be executed. A file
# set named "all" must be included.
config.file_sets = {
"all" => ["test/**/*_test.rb"],
"validations" => ["test/unit/validations/*_test.rb"],
"methods" => ["test/unit/methods/*_test.rb"],
"geocoding" => ["test/unit/geocoding/*_test.rb"],
"deleting" => ["test/unit/deleting/*_test.rb"],
"auth" => ["test/unit/auth/*_test.rb"],
"edge" => ["test/unit/edge/*_test.rb"],
"units" => ["test/unit/**/*_test.rb"]
}
# Fail fast specifies whether or not tests should stop executing once
# the first failure occurs.
# config.fail_fast = true
# Specifies code to be run before loading the environment
config.before_load do
ENV["RAILS_ENV"] ||= "test"
end
# Specifies code to be run after loading the environment
config.after_load do
::Rails.application
::Rails::Engine.class_eval do
def eager_load!
# turn off eager_loading
end
end
end
# Specifies code to be run before each test execution
config.before_test_run do
puts "I'm about to run!!!"
end
end