Sha256: def78761ae1ea94d93a483c6b0c18c2869fd9ad826a5d5a79a99a7286541374b
Contents?: true
Size: 766 Bytes
Versions: 10
Compression:
Stored size: 766 Bytes
Contents
namespace :test do namespace :coverage do metric = Hexx::RSpec::Metrics::SimpleCov caller = Hexx::RSpec::System output = -> { ENV.fetch("SIMPLECOV_OUTPUT") { "coveralls/index.html" } } # Loads settings for simplecov from the 'config/metrics/simplecov.yml' task :configure do metric.load end desc "Runs tests under the coveralls" task run: :configure do caller.call "rake test" puts "see results in #{ output.call }" end desc "Displays results of the coveralls last run" task display: :configure do caller.call "launchy #{ output.call }" end end desc "Runs tests under the coveralls and displays the results" task coverage: %w(coverage:run coverage:display) end # namespace :test
Version data entries
10 entries across 10 versions & 1 rubygems