Sha256: d8cd9c00b022d506b6353c535065847e86fa3950ce3a573e62f08b88bf876dc1
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
require 'rspec/core/rake_task' namespace :sm_wrap do desc "Run all specs, with jetty instance running" task :rspec_wrapped => ['sm_wrap:solrmarc:ant_dist_site', 'sm_wrap:jetty:config_ci'] do test_jetty_dir = File.expand_path(File.dirname(__FILE__) + '../../../solrmarc/test/jetty') require 'jettywrapper' jetty_params = Jettywrapper.load_config.merge({ :jetty_home => test_jetty_dir, :solr_home => test_jetty_dir + '/solr', :java_opts => "-Dsolr.data.dir=" + test_jetty_dir + "/solr/test/data", :jetty_port => 8983, :startup_wait => 25 }) error = Jettywrapper.wrap(jetty_params) do `sh ./spec/scripts/curl_empty_test_solr.sh` `sh ./spec/scripts/curl_add_bare666_to_test.sh` Rake::Task['sm_wrap:rspec_core'].invoke end raise "TEST FAILURES: #{error}" if error end RSpec::Core::RakeTask.new(:rspec_core) do |spec| spec.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solrmarc_wrapper-0.0.1 | lib/tasks/spec.rake |