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