Sha256: 4cbb4a9ba1ef7833b209a74cffa23f87d47e57daa8e9bf499ab57b1798cabe79

Contents?: true

Size: 1.07 KB

Versions: 112

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'

require 'solidus_backend'
require 'spree/testing_support/dummy_app/rake_tasks'

RSpec::Core::RakeTask.new
task default: [:spec, 'spec:js']

DummyApp::RakeTasks.new(
  gem_root: File.expand_path(__dir__),
  lib_name: 'solidus_backend'
)

task :teaspoon do
  require 'teaspoon'
  Rake::Task['dummy_environment'].invoke
  require "teaspoon/console"

  options = {
    files: ENV["files"].nil? ? [] : ENV["files"].split(","),
    suite: ENV["suite"],
    coverage: ENV["coverage"],
    driver_options: ENV["driver_options"],
  }

  options.delete_if { |_k, v| v.nil? }

  abort("rake teaspoon failed") if Teaspoon::Console.new(options).failures?
end

desc "Run javascript specs"
task 'spec:js' => :teaspoon

namespace :teaspoon do
  task :server do
    require 'teaspoon'
    Rake::Task['dummy_environment'].invoke
    require 'teaspoon/server'

    server = Teaspoon::Server.new
    server.start
    puts "#{server.url}/teaspoon"
    sleep
  end
end

task test_app: 'db:reset'

Version data entries

112 entries across 112 versions & 2 rubygems

Version Path
solidus_backend-2.11.5 Rakefile
solidus_backend-2.11.4 Rakefile
solidus_backend-2.11.3 Rakefile
solidus_backend-2.11.2 Rakefile
solidus_backend-2.11.1 Rakefile
solidus_backend-2.10.3 Rakefile
solidus_backend-2.11.0 Rakefile
solidus_backend-2.10.2 Rakefile
solidus_backend-2.9.6 Rakefile
solidus_backend-2.8.6 Rakefile
solidus_backend-2.10.1 Rakefile
solidus_backend-2.9.5 Rakefile
solidus_backend-2.10.0 Rakefile
solidus_backend-2.9.4 Rakefile
solidus_backend-2.6.6 Rakefile
solidus_backend-2.7.4 Rakefile
solidus_backend-2.8.5 Rakefile
solidus_backend-2.9.3 Rakefile
solidus_backend-2.9.2 Rakefile
solidus_backend-2.10.0.beta1 Rakefile