Rakefile in link_shrink-0.0.1 vs Rakefile in link_shrink-0.0.2
- old
+ new
@@ -2,6 +2,13 @@
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :default => :spec
-task :test => :spec
+task :test => :spec
+
+desc 'Run All specs and generate simplecov report'
+task :cov do |t|
+ ENV['COVERAGE'] = 'true'
+ Rake::Task['spec'].execute
+ `open coverage/index.html`
+end
\ No newline at end of file