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

Version Path
activerecord-sqlserver-adapter-7.0.7 Rakefile
activerecord-sqlserver-adapter-7.0.6 Rakefile
activerecord-sqlserver-adapter-7.0.5.1 Rakefile
activerecord-sqlserver-adapter-7.0.5.0 Rakefile
activerecord-sqlserver-adapter-7.0.4.0 Rakefile
activerecord-sqlserver-adapter-7.0.3.0 Rakefile
activerecord-sqlserver-adapter-6.0.3 Rakefile
activerecord-sqlserver-adapter-7.0.2.0 Rakefile
activerecord-sqlserver-adapter-6.1.3.0 Rakefile
activerecord-sqlserver-adapter-7.0.1.0 Rakefile
activerecord-sqlserver-adapter-7.0.0.0 Rakefile
activerecord-sqlserver-adapter-7.0.0.0.rc1 Rakefile
activerecord-sqlserver-adapter-6.1.2.1 Rakefile
activerecord-sqlserver-adapter-6.1.2.0 Rakefile
activerecord-sqlserver-adapter-6.1.1.0 Rakefile
activerecord-sqlserver-adapter-6.1.0.0 Rakefile
activerecord-sqlserver-adapter-6.1.0.0.rc1 Rakefile
activerecord-sqlserver-adapter-6.0.2 Rakefile
activerecord-sqlserver-adapter-6.0.1 Rakefile
activerecord-sqlserver-adapter-6.0.0 Rakefile