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-4.2.0 Rakefile
solidus_backend-4.1.1 Rakefile
solidus_backend-4.0.2 Rakefile
solidus_backend-3.4.4 Rakefile
solidus_backend-3.3.4 Rakefile
solidus_backend-3.2.9 Rakefile
solidus_backend-3.2.8 Rakefile
solidus_backend-3.3.3 Rakefile
solidus_backend-3.4.3 Rakefile
solidus_backend-4.0.1 Rakefile
solidus_backend-4.1.0 Rakefile
solidus_backend-4.0.0 Rakefile
solidus_backend-3.4.2 Rakefile
solidus_backend-3.2.7 Rakefile
solidus_backend-3.3.2 Rakefile
solidus_backend-3.4.1 Rakefile
solidus_backend-3.4.0 Rakefile
solidus_backend-3.3.1 Rakefile
solidus_backend-3.2.6 Rakefile
solidus_backend-3.1.9 Rakefile