forked from instana/ruby-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (23 loc) · 706 Bytes
/
Rakefile
File metadata and controls
30 lines (23 loc) · 706 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
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'json'
Rake::TestTask.new(:test) do |t|
t.verbose = false
t.warning = false
t.ruby_opts = []
t.libs << "test"
t.libs << "lib"
if ENV['APPRAISAL_INITIALIZED']
appraised_group = File.basename(ENV['BUNDLE_GEMFILE']).split(/_[0-9]+\./).first
suite_files = Dir['test/{instrumentation,frameworks}/*_test.rb']
t.test_files = suite_files.select { |f| File.basename(f).start_with?(appraised_group) }
else
t.test_files = Dir[
'test/*_test.rb',
'test/{agent,tracing,backend,snapshot}/*_test.rb'
]
end
end
task :default => :test