forked from nanliu/Razor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (28 loc) · 995 Bytes
/
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
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
task :default do
system("rake -T")
end
task :specs => [:spec]
desc "Run all rspec tests"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--color']
# ignores fixtures directory.
t.pattern = 'spec/**/*_spec.rb'
end
task :specsdb => [:specdb]
desc "Run all rspec Persistence tests"
RSpec::Core::RakeTask.new(:specdb) do |t|
t.rspec_opts = ['--color']
# ignores fixtures directory.
t.pattern = 'spec/persist/*_spec.rb'
end
task :specs_html => [:spec_html]
desc "Run all rspec tests with html output"
fpath = "#{ENV['RAZOR_RSPEC_WEBPATH']||'.'}/razor_tests.html"
RSpec::Core::RakeTask.new(:spec_html) do |t|
t.rspec_opts = ['--color', '--format h', "--out #{fpath}"]
# ignores fixtures directory.
t.pattern = 'spec/**/*_spec.rb'
end