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