Sha256: 285b1f881333034fc3c686c8b62ac4bdc399088abf328e0c8758bac8d4f6a399

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

Contents

require 'rspec/core/rake_task'
require 'yard'
require 'metric_fu'

ENV['MEASURE_DIR'] = ENV['MEASURE_DIR'] || File.join('fixtures', 'measure_defs')

Dir['lib/tasks/*.rake'].sort.each do |ext|
  load ext
end

RSpec::Core::RakeTask.new do |t|
  t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
  t.pattern = 'spec/**/*_spec.rb'
end

YARD::Rake::YardocTask.new

namespace :cover_me do
  
  task :report do
    require 'cover_me'
    CoverMe.complete!
  end
  
end

task :coverage do
  Rake::Task['spec'].invoke
  Rake::Task['cover_me:report'].invoke
end

MetricFu::Configuration.run do |config|
    #define which metrics you want to use
    config.metrics  = [:roodi, :reek, :churn, :flog, :flay]
    config.graphs   = [:flog, :flay]
    config.flay ={:dirs_to_flay => []} #Flay doesn't seem to be handling CLI arguments well... so this config squashes them
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quality-measure-engine-0.2.0 Rakefile