Sha256: 7f40c5a9fa3923cf9881c41abc7a453be3608e995836526cfdbdc25b4d92c6b5
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
namespace :test do namespace :coverage do metric = Hexx::RSpec::Metrics::SimpleCov 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, :test] do puts "see results in #{output.call}" end desc "Displays results of the coveralls last run" task display: :configure do Hexx::RSpec["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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexx-rspec-0.5.2 | lib/hexx-rspec/tasks/test/coverage.rake |
hexx-rspec-0.5.1 | lib/hexx-rspec/tasks/test/coverage.rake |