Sha256: c1e10437ad0807d3358e29a496d0a636e27071d2088e2c112ea93b4b272463c4
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.6.0.zip" require 'jettywrapper' require 'engine_cart/rake_task' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/**/*_spec.rb' end desc "Run test suite" task :ci => 'blacklight:clean' do ENV['environment'] = "test" jetty_params = Jettywrapper.load_config jetty_params[:startup_wait]= 60 error = Jettywrapper.wrap(jetty_params) do Rake::Task["blacklight:fixtures"].invoke Rake::Task['blacklight:coverage'].invoke end raise "test failures: #{error}" if error # Only create documentation if the tests have passed #Rake::Task["active_fedora:doc"].invoke end namespace :blacklight do desc "Load fixtures" task :fixtures => [:generate] do within_test_app do system "rake solr:marc:index_test_data RAILS_ENV=test" abort "Error running fixtures" unless $?.success? end end desc "Run tests with coverage" task :coverage do ENV['COVERAGE'] = 'true' Rake::Task["spec"].invoke end desc "Clean out the test rails app" task :clean => ['engine_cart:clean', 'jetty:clean'] do end desc "Create the test rails app" task :generate => ['engine_cart:generate'] do end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-5.0.0.pre3 | tasks/blacklight.rake |
blacklight-5.0.0.pre2 | tasks/blacklight.rake |