Add a Rake task for running integration tests

This commit is contained in:
R. Tyler Croy 2014-09-09 11:18:08 -07:00
parent 128ec66db0
commit 08f47503ed
1 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,15 @@ Rake::ExtensionTask.new do |t|
t.gem_spec = Gem::Specification.load('hermann.gemspec')
end
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:spec) do |r|
r.rspec_opts = '--tag ~type:integration'
end
namespace :spec do
RSpec::Core::RakeTask.new(:integration) do |r|
r.rspec_opts = '--tag type:integration'
end
end
task :build => [:compile]
task :default => [:clean, :build, :spec]