Sha256: da2fcb817d112ff5c43fb107f8461e0412436a0902f932ba1c5e043f37b663f3

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

require 'mutant'
require 'dry/inflector'

require 'rspec/core/rake_task'

namespace :spec do
  desc 'run RSpec'
  RSpec::Core::RakeTask.new(:rspec) do |task|
    task.rspec_opts = '--format documentation'
  end

  desc 'run SimpleCov'
  task :simplecov do
    ENV['COVERAGE'] = 'true'
    Rake::Task['spec:rspec'].invoke
  end

  desc 'run Mutant'
  task :mutant, [:subject] do |_, args|
    subjects = [args[:subject]].compact
    subjects << 'Mnogootex*' if subjects.empty?
    successful = ::Mutant::CLI.run(%w[--use rspec --fail-fast] + subjects)
    raise('Mutant task is not successful') unless successful
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mnogootex-1.0.1 Rakefile
mnogootex-1.0.0 Rakefile