Sha256: 047dafe09920009706f9410c1342aa26dd3f45955ceac1028499da4e8442615f

Contents?: true

Size: 696 Bytes

Versions: 97

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'spree/testing_support/dummy_app/rake_tasks'

RSpec::Core::RakeTask.new
task default: :spec

DummyApp::RakeTasks.new(
  gem_root: File.dirname(__FILE__),
  lib_name: 'solidus_core'
)

require 'yard'
YARD::Rake::YardocTask.new

namespace :spec do
  task :isolated do
    spec_files = Dir['spec/**/*_spec.rb']
    failed_specs =
      spec_files.reject do |file|
        puts "rspec #{file}"
        system('rspec', file)
      end

    if !failed_specs.empty?
      puts "Failed specs:"
      puts failed_specs
      exit 1
    end
  end
end

task test_app: 'db:reset'

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
solidus_core-3.2.9 Rakefile
solidus_core-3.2.8 Rakefile
solidus_core-3.2.7 Rakefile
solidus_core-3.2.6 Rakefile
solidus_core-3.1.9 Rakefile
solidus_core-3.2.5 Rakefile
solidus_core-3.2.4 Rakefile
solidus_core-3.2.3 Rakefile
solidus_core-3.1.8 Rakefile
solidus_core-3.0.8 Rakefile
solidus_core-3.2.2 Rakefile
solidus_core-3.2.1 Rakefile
solidus_core-3.2.0 Rakefile
solidus_core-3.2.0.alpha Rakefile
solidus_core-3.0.7 Rakefile
solidus_core-2.11.17 Rakefile
solidus_core-3.1.7 Rakefile
solidus_core-2.11.16 Rakefile
solidus_core-3.0.6 Rakefile
solidus_core-3.1.6 Rakefile