forked from yammer/circuitbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (25 loc) · 764 Bytes
/
Rakefile
File metadata and controls
31 lines (25 loc) · 764 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
27
28
29
30
31
# frozen_string_literal: true
require 'rake/testtask'
namespace :test do
desc 'Run complete test suite'
task all: [:unit, :integration]
desc 'Run unit tests'
Rake::TestTask.new(:unit) do |t|
t.libs << 'test'
t.test_files = FileList['test/*_test.rb', 'test/notifier/*_test.rb', 'test/memory_store/*_test.rb']
end
desc 'Run integration tests'
Rake::TestTask.new(:integration) do |t|
t.libs << 'test'
t.test_files = FileList['test/integration/*_test.rb']
end
desc 'Run the circuitbox benchmarks'
task :benchmark do
benchmark_scripts = FileList.new('./benchmark/*_benchmark.rb')
benchmark_scripts.each do |script|
system "bundle exec ruby #{script}"
end
end
end
desc 'Run tests'
task default: ['test:all']