Sha256: 0672665a26126500356aee7d28e442e65ca6de68876ff29295036292d0aa7e5e

Contents?: true

Size: 738 Bytes

Versions: 5

Compression:

Stored size: 738 Bytes

Contents

namespace :check do
  namespace :coverage do

    metric = Hexx::Suit::Metrics::SimpleCov
    caller = Hexx::Suit::Utils::System
    output = -> { ENV.fetch("SIMPLECOV_OUTPUT") { "coveralls/index.html" } }

    # Loads settings for simplecov from the '.hexx-suit.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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 lib/tasks/check/coverage.rake
hexx-suit-0.2.1 lib/tasks/check/coverage.rake
hexx-suit-0.2.0 lib/tasks/check/coverage.rake
hexx-suit-0.1.0 lib/tasks/check/coverage.rake
hexx-suit-0.0.1 lib/tasks/check/coverage.rake