Skip to content

Commit

Permalink
Adding the rakefile back in and setting an ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
adambair committed Jun 1, 2008
1 parent 1d81626 commit f791aef
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 224 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
/coverage
coverage.data
/test/*.sqlite*
/test/*.log
31 changes: 31 additions & 0 deletions Rakefile
@@ -0,0 +1,31 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the Profanity Filter plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for the happy plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Profanity Filter'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Measures test coverage using rcov'
task :rcov do
rm_f "coverage"
rm_f "coverage.data"
rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib"
system("#{rcov} --html #{Dir.glob('test/**/*_test.rb').join(' ')}")
system("open coverage/index.html") if PLATFORM['darwin']
end
224 changes: 0 additions & 224 deletions test/debug.log

This file was deleted.

0 comments on commit f791aef

Please sign in to comment.