Sha256: 839d1134fdcc93865ed289d8e3014ec99e5700d418fdd4af2a6fd5f5091a3d58
Contents?: true
Size: 927 Bytes
Versions: 35
Compression:
Stored size: 927 Bytes
Contents
require 'bundler/gem_tasks' require 'rubocop/rake_task' require 'rake/testtask' RuboCop::RakeTask.new task :default => ['tests:mock', 'tests:spec', 'tests:unit'] task :mock => 'tests:mock' task :spec => "tests:spec" task :unit => 'tests:unit' namespace :tests do desc 'Run fog-openstack tests with Mock class' Rake::TestTask.new do |t| ENV['FOG_MOCK']= ENV['FOG_MOCK'].nil? ? 'true' : ENV['FOG_MOCK'] t.name = 'mock' t.libs.push [ "lib", "test" ] t.test_files = FileList['test/**/*.rb'] t.verbose = true end desc 'Run fog-openstack tests with RSpec and VCR' Rake::TestTask.new do |t| t.name = 'spec' t.libs.push [ "lib", "spec" ] t.pattern = 'spec/**/*_spec.rb' t.verbose = true end desc 'Run fog-openstack unit tests' Rake::TestTask.new do |t| t.name = 'unit' t.libs.push [ "lib", "unit" ] t.pattern = 'unit/**/*_test.rb' t.verbose = true end end
Version data entries
35 entries across 35 versions & 3 rubygems