Sha256: 67202be47fed325d60eb5c33333b9b0ebe463611a64768f91be617c8022304d7

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

require 'rake/testtask'
require 'bundler/gem_tasks'

task default: :cc_coverage
task :test do
  ENV['COVERAGE'] = nil
  ENV['CODECLIMATE_REPO_TOKEN'] = nil
  Dir.glob('test/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/models/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/requests/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/unit/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
end

task :integration do
  Dir.glob('test/integration/*.rb').each { |file| require File.expand_path file, __dir__ }
end

desc 'Generates a coverage report for minitest-cases using simple-cov'
task :coverage do
  ENV['CODECLIMATE_REPO_TOKEN'] = nil
  ENV['COVERAGE'] = 'true'
  Dir.glob('test/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/models/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/requests/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
end

desc 'Generates a coverage report for minitest-cases using code-climate'
task :cc_coverage do
  ENV['COVERAGE'] = nil
  ENV['CODECLIMATE_REPO_TOKEN'] = 'b1401494baa004d90402414cb33a7fc6420fd3693e60c677a120ddefd7d84cfd'
  Dir.glob('test/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/models/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
  Dir.glob('test/requests/**/test_*.rb').each { |file| require File.expand_path file, __dir__ }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-fog-azure-rm-2.2.0 rakefile