Sha256: 76bb96f6f9be70f23efa445e8a9530de07ca230dedde8bdd8ceb372ead1ba054

Contents?: true

Size: 920 Bytes

Versions: 3

Compression:

Stored size: 920 Bytes

Contents

namespace :check do

  namespace :pippi do

    metric = Hexx::Suit::Metrics::Pippi
    caller = Hexx::Suit::Utils::System
    output = -> { ENV.fetch("PIPPI_OUTPUT") { "log/pippi.log" } }

    # Loads settings for pippi runtime metric from the '.hexx-suit.yml'
    task :configure do
      metric.load
    end

    desc "Runs tests with pippi runtime metric"
    task run: :configure do
      puts "******* STARTING METRIC pippi"
      caller.call "rake test"
      puts "see pippi results in #{ output.call }"
      puts "******* ENDING METRIC pippi"
    end

    desc "Displays results of pippi last run"
    task display: :configure do
      puts "******* DISPLAYING METRIC pippi"
      caller.call "cat #{ output.call }"
      puts "******* ENDING METRIC pippi"
    end
  end

  desc "Runs tests with pippi runtime metric and displays the results"
  task pippi: %w(pippi:run pippi:display)

end if USE_PIPPI_METRIC

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 lib/tasks/check/pippi.rake
hexx-suit-0.2.1 lib/tasks/check/pippi.rake
hexx-suit-0.2.0 lib/tasks/check/pippi.rake