forked from ontoportal/goo
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
119 lines (98 loc) · 2.51 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
require 'rake/testtask'
task default: %w[test]
Rake::TestTask.new do |t|
t.libs = []
t.test_files = FileList['test/test*.rb'].select { |x| !x["index"] }
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:persistence"
t.test_files = FileList['test/test_basic_persistence.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:cache"
t.test_files = FileList['test/test_cache.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:chunks_write"
t.test_files = FileList['test/test_chunks_write.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:collections"
t.test_files = FileList['test/test_collections.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:dsl_settings"
t.test_files = FileList['test/test_dsl_settings.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:enum"
t.test_files = FileList['test/test_enum.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:index"
t.test_files = FileList['test/test_index.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:inmutable"
t.test_files = FileList['test/test_inmutable.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:inverse"
t.test_files = FileList['test/test_inverse.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:model_complex"
t.test_files = FileList['test/test_model_complex.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:name_with"
t.test_files = FileList['test/test_name_with.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:namespaces"
t.test_files = FileList['test/test_namespaces.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:read_only"
t.test_files = FileList['test/test_read_only.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:schemaless"
t.test_files = FileList['test/test_schemaless.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:search"
t.test_files = FileList['test/test_search.rb']
t.warning = false
end
Rake::TestTask.new do |t|
t.name = "test:where"
t.test_files = FileList['test/test_where.rb']
t.warning = false
end
desc "Console for working with data"
task :console do
require_relative "test/test_case"
binding.pry
end
desc "Run test coverage analysis"
task :coverage do
puts "Code coverage reports will be visible in the /coverage folder"
ENV["COVERAGE"] = "true"
Rake::Task["test"].invoke
end