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-2.4.2 Rakefile
krane-2.4.1 Rakefile
krane-2.4.0 Rakefile
krane-2.3.7 Rakefile
krane-2.3.6 Rakefile
krane-2.3.5 Rakefile