lib/generators/rcov.rb in metric_fu-1.2.0 vs lib/generators/rcov.rb in metric_fu-1.3.0

- old
+ new

@@ -34,10 +34,11 @@ FileUtils.rm_rf(MetricFu::Rcov.metric_directory, :verbose => false) Dir.mkdir(MetricFu::Rcov.metric_directory) test_files = FileList[*MetricFu.rcov[:test_files]].join(' ') rcov_opts = MetricFu.rcov[:rcov_opts].join(' ') output = ">> #{MetricFu::Rcov.metric_directory}/rcov.txt" - `rcov #{test_files} #{rcov_opts} #{output}` + puts "** Running the specs/tests in the [#{MetricFu.rcov[:environment]}] environment" + `RAILS_ENV=#{MetricFu.rcov[:environment]} rcov #{test_files} #{rcov_opts} #{output}` rescue LoadError if RUBY_PLATFORM =~ /java/ puts 'running in jruby - rcov tasks not available' else puts 'sudo gem install rcov # if you want the rcov tasks'