Sha256: 4418a8c3ad72213b49eae789fa1d10e9fd0121194278264b80e70f0e3f43a7a2

Contents?: true

Size: 905 Bytes

Versions: 4

Compression:

Stored size: 905 Bytes

Contents

# ------------------------------------------------------------
# RSpec

require 'rspec/core'
require 'rspec/core/rake_task'

namespace :spec do
  desc 'Run all unit tests'
  RSpec::Core::RakeTask.new(:unit) do |task|
    task.rspec_opts = %w[--color --format documentation --order default]
    task.pattern = 'unit/**/*_spec.rb'
  end

end

desc 'Run all tests'
task spec: %w[spec:unit]

# ------------------------------------------------------------
# Coverage

desc 'Run all unit tests with coverage'
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec:unit'].execute
end

# ------------------------------------------------------------
# RuboCop

require 'rubocop/rake_task'
RuboCop::RakeTask.new

# ------------------------------------------------------------
# Defaults

desc 'Run unit tests, check test coverage, run acceptance tests, check code style'
task default: %i[coverage rubocop]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
merritt-manifest-0.1.3 Rakefile
merritt-manifest-0.1.2 Rakefile
merritt-manifest-0.1.1 Rakefile
merritt-manifest-0.1.0 Rakefile