Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the rakefile back in and setting an ignore
- Loading branch information
Showing
3 changed files
with
32 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/coverage | ||
coverage.data | ||
/test/*.sqlite* | ||
/test/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.