-
Notifications
You must be signed in to change notification settings - Fork 194
/
Rakefile
21 lines (17 loc) · 880 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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.
# Our test suite generates ~17MB of logs at log level :info, switching
# to log level :warn reduces logging and increases execution speed.
ENV["LOG_LEVEL"] = "warn"
# We only set this var when running via Rake, so that we can get
# sensible coverage reports when running a full test suite,
# without overwriting them when we're just running a single test
ENV["COVERAGE"] = "true"
require "minitest/test_task"
require File.expand_path("config/application", __dir__)
Whitehall::Application.load_tasks
Minitest::TestTask.create do |t|
t.test_globs = %w[test/**/*_test.rb lib/engines/**/test/**/*_test.rb]
end
Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
task default: %i[lint test cucumber jasmine]