forked from projectcypress/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (21 loc) · 722 Bytes
/
Copy pathRakefile
File metadata and controls
26 lines (21 loc) · 722 Bytes
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
# 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 'rails'
require File.expand_path('../config/application', __FILE__)
require 'rake'
require "quality-measure-engine"
Cypress::Application.load_tasks
ENV['DB_NAME'] = "cypress_#{Rails.env}"
task "resque:setup" => :environment
Rake::TestTask.new(:test_unit) do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
Rake::Task["test"].clear
task :test => [:test_unit] do
Rake::Task["quality_post"].invoke
Rake::Task["bundle_audit"].invoke
system("open coverage/index.html")
end
task :test_unit => :quality_pre