Sha256: de2d075267fb0d8e0257132785922da2e52d76c60c4daa7118923d520c35098c
Contents?: true
Size: 996 Bytes
Versions: 21
Compression:
Stored size: 996 Bytes
Contents
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" require_relative "test/support/paths_sqlserver" require_relative "test/support/rake_helpers" task test: ["test:dblib"] task default: [:test] namespace :test do %w(dblib).each do |mode| Rake::TestTask.new(mode) do |t| t.libs = ARTest::SQLServer.test_load_paths t.test_files = test_files t.warning = !!ENV["WARNING"] t.verbose = false end end task "dblib:env" do ENV["ARCONN"] = "dblib" end end task "test:dblib" => "test:dblib:env" namespace :profile do ["dblib"].each do |mode| namespace mode.to_sym do Dir.glob("test/profile/*_profile_case.rb").sort.each do |test_file| profile_case = File.basename(test_file).sub("_profile_case.rb", "") Rake::TestTask.new(profile_case) do |t| t.libs = ARTest::SQLServer.test_load_paths t.test_files = [test_file] t.verbose = true end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems