Sha256: da93597b9aec2c7c5053b918c161b607192d765d5084ba44f95615bde161c61e

Contents?: true

Size: 826 Bytes

Versions: 15

Compression:

Stored size: 826 Bytes

Contents

require "bundler/gem_tasks"
require 'rake/testtask'
require 'cucumber/rake/task'
require 'cane/rake_task'
require 'tailor/rake_task'

Rake::TestTask.new(:unit) do |t|
  t.libs.push "lib"
  t.test_files = FileList['spec/**/*_spec.rb']
  t.verbose = true
end

Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = ['features', '-x', '--format progress']
end

desc "Run all test suites"
task :test => [:unit, :features]

desc "Run cane to check quality metrics"
Cane::RakeTask.new do |cane|
  cane.canefile = './.cane'
end

Tailor::RakeTask.new

desc "Display LOC stats"
task :stats do
  puts "\n## Production Code Stats"
  sh "countloc -r lib"
  puts "\n## Test Code Stats"
  sh "countloc -r spec features"
end

desc "Run all quality tasks"
task :quality => [:cane, :tailor, :stats]

task :default => [:test, :quality]

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
busser-0.6.2 Rakefile
busser-0.6.1 Rakefile
busser-0.6.0 Rakefile
busser-0.6.0.beta.1 Rakefile
busser-0.5.0 Rakefile
busser-0.4.1 Rakefile
busser-0.4.0 Rakefile
busser-0.3.2 Rakefile
busser-0.3.1 Rakefile
busser-0.3.0 Rakefile
busser-0.2.0 Rakefile
busser-0.1.1 Rakefile
busser-0.1.0 Rakefile
kb-1.0.0.alpha.1 Rakefile
kb-1.0.0.alpha.0 Rakefile