-
Notifications
You must be signed in to change notification settings - Fork 154
/
Rakefile
41 lines (33 loc) · 1.07 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
#!/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
begin
require 'jasmine'
load 'jasmine/tasks/jasmine.rake'
rescue LoadError
task :jasmine do
abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
end
end