Sha256: 88ab86319992d59f98911c35faebf83e7ed43a647721ffaed266648d19b5e89f

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

require "rdoc/task"
require "rubocop/rake_task"
require "rspec/core/rake_task"

RuboCop::RakeTask.new

RSpec::Core::RakeTask.new(:spec)

namespace :spec do
  desc 'Clean all generated reports'
  task :clean do
    system('rm -rf spec/reports')
    system('rm -rf spec/coverage')
  end

  RSpec::Core::RakeTask.new(all: :clean) do |config|
    options  = %w[--color]
    options += %w[--format documentation]
    options += %w[--format html --out spec/reports/unit-test-report.html]

    config.rspec_opts = options
  end
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.main = 'README.md'
  rdoc.title = "TestSpec #{TestSpec::VERSION}"
  rdoc.rdoc_files.include('README*', 'lib/**/*.rb')
end

task default: ['spec:all', :rubocop]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_spec-1.1.0 Rakefile
test_spec-1.0.0 Rakefile
test_spec-0.1.0 Rakefile