forked from Shopify/krane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (34 loc) · 1.03 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
desc("Run integration tests that can be run in parallel")
Rake::TestTask.new(:integration_test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/integration/**/*_test.rb']
t.warning = !ENV.key?('CI')
end
desc("Run integration tests that CANNOT be run in parallel")
Rake::TestTask.new(:serial_integration_test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/integration-serial/**/*_test.rb']
t.warning = !ENV.key?('CI')
end
desc("Run unit tests")
Rake::TestTask.new(:unit_test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/unit/**/*_test.rb']
t.warning = !ENV.key?('CI')
end
desc("Run cli tests")
Rake::TestTask.new(:cli_test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/exe/**/*_test.rb']
t.warning = !ENV.key?('CI')
end
desc("Run all tests")
task(test: %w(unit_test serial_integration_test integration_test cli_test))
task(default: :test)