1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

update rake task to run all tests, mocked and unmocked

This commit is contained in:
geemus 2010-09-02 13:12:57 -07:00
parent 4eb0b8ad22
commit a16e334224

View file

@ -45,11 +45,18 @@ end
task :default => :test task :default => :test
require 'rake/testtask' task :test do
Rake::TestTask.new(:test) do |test| sh("export FOG_MOCK=true && bundle exec spec -cfs spec") &&
test.libs << 'lib' << 'test' sh("export FOG_MOCK=true && bundle exec shindo tests") &&
test.pattern = 'test/**/test_*.rb' sh("export FOG_MOCK=false && bundle exec spec -cfs spec") &&
test.verbose = true sh("export FOG_MOCK=false && bundle exec shindo tests")
end
task :ci do
sh("export FOG_MOCK=true && bundle exec spec spec") &&
sh("export FOG_MOCK=true && bundle exec shindont tests") &&
sh("export FOG_MOCK=false && bundle exec spec spec") &&
sh("export FOG_MOCK=false && bundle exec shindont tests")
end end
desc "Generate RCov test coverage and open in your browser" desc "Generate RCov test coverage and open in your browser"
@ -73,20 +80,6 @@ task :console do
sh "irb -rubygems -r ./lib/#{name}.rb" sh "irb -rubygems -r ./lib/#{name}.rb"
end end
#############################################################################
#
# Custom tasks (add your own tasks here)
#
#############################################################################
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec' << File.expand_path("../", __FILE__)
spec.spec_opts = ['--colour', "--format", "specdoc"]
spec.spec_files = FileList['spec/**/*_spec.rb']
end
############################################################################# #############################################################################
# #
# Packaging tasks # Packaging tasks