Sha256: f44b687e9e729498440d08111ee0a2d7a96741e3795ed90a740e41d8df21eed3
Contents?: true
Size: 768 Bytes
Versions: 3
Compression:
Stored size: 768 Bytes
Contents
require "bundler/gem_tasks" require 'rake/testtask' require 'cucumber/rake/task' require 'cane/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 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, :stats] task :default => [:test, :quality]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
busser-0.7.1 | Rakefile |
busser-0.7.0 | Rakefile |
busser-0.7.0.rc.1 | Rakefile |