forked from fog/fog-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (28 loc) · 755 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
27
28
29
30
31
32
33
34
require 'bundler/gem_tasks'
require 'rubocop/rake_task'
require 'rake/testtask'
RuboCop::RakeTask.new
task :default => :test
desc 'Run fog-openstack unit tests with Minitest'
task :test do
mock = ENV['FOG_MOCK'] || 'true'
sh("export FOG_MOCK=#{mock} && bundle exec rake tests:unit")
end
desc 'Run fog-openstack spec/ tests (VCR)'
task :spec => "tests:spec"
namespace :tests do
desc "Run fog-openstack test/"
Rake::TestTask.new do |t|
t.name = 'unit'
t.libs.push [ "lib", "test" ]
t.test_files = FileList['test/**/*.rb']
t.verbose = true
end
desc "Run fog-openstack spec/"
Rake::TestTask.new do |t|
t.name = 'spec'
t.libs.push [ "lib", "spec" ]
t.pattern = 'spec/**/*_spec.rb'
t.verbose = true
end
end