Sha256: ea3c7b2c71a3c55c0f27a943431481ecb135189d0394ca96560417e505d2e8e8

Contents?: true

Size: 1.03 KB

Versions: 26

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"

desc("Run integration tests that can be run in parallel")
Rake::TestTask.new(:integration_test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/integration/**/*_test.rb']
  t.warning = !ENV.key?('CI')
end

desc("Run integration tests that CANNOT be run in parallel")
Rake::TestTask.new(:serial_integration_test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/integration-serial/**/*_test.rb']
  t.warning = !ENV.key?('CI')
end

desc("Run unit tests")
Rake::TestTask.new(:unit_test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/unit/**/*_test.rb']
  t.warning = !ENV.key?('CI')
end

desc("Run cli tests")
Rake::TestTask.new(:cli_test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/exe/**/*_test.rb']
  t.warning = !ENV.key?('CI')
end

desc("Run all tests")
task(test: %w(unit_test serial_integration_test integration_test cli_test))

task(default: :test)

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
krane-3.6.2 Rakefile
krane-3.6.1 Rakefile
krane-3.5.2 Rakefile
krane-3.5.1 Rakefile
krane-3.5.0 Rakefile
krane-3.4.2 Rakefile
krane-3.4.1 Rakefile
krane-3.4.0 Rakefile
krane-3.3.0 Rakefile
krane-3.2.0 Rakefile
krane-3.1.0 Rakefile
krane-3.0.1 Rakefile
krane-3.0.0 Rakefile
krane-2.4.9 Rakefile
krane-2.4.8 Rakefile
krane-2.4.7 Rakefile
krane-2.4.6 Rakefile
krane-2.4.5 Rakefile
krane-2.4.4 Rakefile
krane-2.4.3 Rakefile