Sha256: f46e7fa2fbf4b306e01bf66e3fb1bf4765364ef7e83a9ac0ef727a7f4e128687

Contents?: true

Size: 487 Bytes

Versions: 28

Compression:

Stored size: 487 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "rake/testtask"
require "bundler/gem_tasks"

namespace :test do
  Rake::TestTask.new(:library) do |t|
    t.test_files = FileList["test/**/*_test.rb"].exclude("test/rest/**/*.rb")
  end

  Rake::TestTask.new(:rest_wrappers) do |t|
    pattern = if ENV.key?("API_VERSION")
      "test/rest/**/#{ENV.fetch("API_VERSION")}/*.rb"
    else
      "test/rest/**/*.rb"
    end

    t.pattern = pattern
  end
end

task test: ["test:library"]

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
shopify_api-14.8.0 Rakefile
shopify_api-14.7.0 Rakefile
shopify_api-14.6.0 Rakefile
shopify_api-14.5.0 Rakefile
shopify_api-14.4.0 Rakefile
shopify_api-14.3.0 Rakefile
shopify_api-14.2.0 Rakefile
shopify_api-14.1.0 Rakefile
shopify_api-14.0.1 Rakefile
shopify_api-14.0.0 Rakefile
shopify_api-13.4.0 Rakefile
shopify_api-13.3.1 Rakefile
shopify_api-13.3.0 Rakefile
shopify_api-13.2.0 Rakefile
shopify_api-13.1.0 Rakefile
shopify_api-13.0.0 Rakefile
shopify_api-12.5.0 Rakefile
shopify_api-12.4.0 Rakefile
shopify_api-12.3.0 Rakefile
shopify_api-12.2.1 Rakefile