Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Barron
committed
Mar 31, 2006
1 parent
05f73d1
commit 1ccab1b
Showing
25 changed files
with
2,717 additions
and
170 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
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
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
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
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
46 changes: 40 additions & 6 deletions
46
lib/insurance/generators/rails/insurance/templates/insurance.rake
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,7 +1,41 @@ | ||
desc 'Run Insurnace coverage analysis' | ||
task :insurance => [ :prepare_test_database ] do | ||
puts | ||
puts 'You may want to get a beverage while this runs. It could take a while!' | ||
puts | ||
system 'railscov' | ||
namespace 'insurance' do | ||
|
||
task :banner do | ||
puts '' | ||
puts 'You might want to get a beverage. This could take a while!' | ||
puts '' | ||
end | ||
|
||
desc 'Run Insurnace coverage analysis on unit tests' | ||
task :units => :banner do | ||
puts 'Analyzing unit suite' | ||
sh %{railscov test/unit} | ||
end | ||
|
||
desc 'Run Insurnace coverage analysis on functional tests' | ||
task :functionals => :banner do | ||
puts 'Analyzing functional suite' | ||
sh %{railscov test/functional} | ||
end | ||
|
||
desc 'Run Insurnace coverage analysis on integration tests' | ||
task :integration => :banner do | ||
puts 'Analyzing integration suite' | ||
sh %{railscov test/integration} | ||
end | ||
|
||
desc 'Clean up Insurance temporary database' | ||
task :clean do | ||
rm_f 'insurance.db' | ||
end | ||
|
||
desc 'Generate the Insurance report' | ||
task :report do | ||
sh %{railscov -r} | ||
end | ||
end | ||
|
||
desc 'Run Insurnace coverage analysis' | ||
task :insurance => ['insurance:banner', 'insurance:clean', | ||
'insurance:units', 'insurance:functionals', | ||
'insurance:integration', 'insurance:report'] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.