forked from WorldVistA/popHealth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (25 loc) · 881 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
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake/dsl_definition'
require 'rake'
# require 'rspec/core/rake_task'
# require 'resque/tasks'
# This fixes errors in the delayed job where the log file will not be written to
# until the delayed job exits.
STDOUT.sync = true
PopHealth::Application.load_tasks
ENV['DB_NAME'] = "pophealth-#{Rails.env}"
Rake::TestTask.new(:test_unit) do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
task :test_all => ["jasmine:ci", :test_unit] do
system("open coverage/index.html")
end
Rake::Task["test"].clear
task 'test' do
puts "Please run rake test_all in order to run the test suite."
end