forked from trailblazer/trailblazer-endpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
26 lines (22 loc) · 855 Bytes
/
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
require "bundler/gem_tasks"
require "rake/testtask"
task :default => [:test]
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.test_files = FileList['test/endpoint_test.rb', 'test/docs/*_test.rb', "test/adapter/*_test.rb", "test/config_test.rb"]
test.verbose = true
end
# To run grape app's test, run below command
# $ appraisal rails-app rake test-rails-app
Rake::TestTask.new('test-rails-app') do |test|
test.libs << 'test'
test.test_files = FileList['test/rails-app/test/test_helper.rb', 'test/rails-app/test/**/*.rb']
test.verbose = true
end
# To run grape app's test, run below command
# $ appraisal grape-app rake test-grape-app
Rake::TestTask.new('test-grape-app') do |test|
test.libs << 'test'
test.test_files = FileList['test/grape-app/test/test_helper.rb', 'test/grape-app/test/**/*.rb']
test.verbose = true
end