Sha256: ec80307e3c2960a51383991af0b71dc511e7e3ed7b9a6eda014de204053f2ed5

Contents?: true

Size: 755 Bytes

Versions: 7

Compression:

Stored size: 755 Bytes

Contents

namespace :blacklight do
  begin
    require 'cucumber/rake/task'
    require 'rspec/core'
    require 'rspec/core/rake_task'

    desc "Run Blacklight cucumber and rspec, with test solr"
    task :all_tests => ['blacklight:spec:with_solr', 'blacklight:cucumber:with_solr']
    
    namespace :all_tests do
      desc "Run Blacklight rspec and cucumber tests with rcov"
      rm "blacklight-coverage.data" if File.exist?("blacklight-coverage.data")
      task :rcov => ['blacklight:spec:rcov', 'blacklight:cucumber:rcov']
    end
    
  rescue LoadError
    desc "Not available! (cucumber and rspec not avail)"
    task :all_tests do
      abort 'Not available. Both cucumber and rspec need to be installed to run blacklight:all_tests'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-3.1.2 lib/railties/all_tests.rake
blacklight-3.1.1 lib/railties/all_tests.rake
blacklight-3.1.0 lib/railties/all_tests.rake
blacklight-3.0.0 lib/railties/all_tests.rake
blacklight-3.0.0pre8 lib/railties/all_tests.rake
blacklight-3.0.0pre7 lib/railties/all_tests.rake
blacklight-3.0.0pre6 lib/railties/all_tests.rake