forked from rmm5t/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 15
/
sake
27 lines (24 loc) · 860 Bytes
/
sake
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
task 'rcov' do
test_files = "test/**/*_test.rb"
options = "--rails --sort coverage --sort-reverse "
options = (options + "--exclude .railsrc")
system("rcov -Itest #{options} #{test_files}")
end
task 'rcov:functionals' do
test_files = "test/functional/*_test.rb"
options = "--rails --sort coverage --sort-reverse "
options = (options + "--exclude .railsrc")
system("rcov -Itest #{options} #{test_files}")
end
task 'rcov:integration' do
test_files = "test/integration/*_test.rb"
options = "--rails --sort coverage --sort-reverse "
options = (options + "--exclude .railsrc")
system("rcov -Itest #{options} #{test_files}")
end
task 'rcov:units' do
test_files = "test/unit/*_test.rb"
options = "--rails --sort coverage --sort-reverse "
options = (options + "--exclude .railsrc")
system("rcov -Itest #{options} #{test_files}")
end