Sha256: 1f4568932895d46155e84cb659bcbeb49eb186fa2b4a00b2d54a735d9d6b2ab9

Contents?: true

Size: 758 Bytes

Versions: 2

Compression:

Stored size: 758 Bytes

Contents

namespace :check do
  namespace :yardstick do

    metric = Hexx::Suit::Metrics::Yardstick
    output = lambda do
      ENV.fetch("YARDSTICK_OUTPUT") { "tmp/yardstick/results.log" }
    end

    desc "Runs yardstick metric"
    task :run do
      puts "******* STARTING METRIC yardstick"
      metric.run
      puts "see results in #{output.call}"
      puts "******* ENDING METRIC yardstick"
    end

    desc "Displays the results of yardstick last run"
    task :display do
      puts "******* DISPLAYING METRIC yardstick"
      metric.load
      Hexx::RSpec["cat #{output.call}"]
      puts "******* ENDING METRIC yardstick"
    end
  end

  desc "Runs yardstick metric and displays the results"
  task yardstick: %w(yardstick:run yardstick:display)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexx-suit-2.3.2 lib/tasks/check/yardstick.rake
hexx-suit-2.3.0 lib/tasks/check/yardstick.rake