Sha256: fbfdb4976097fd17439965cf7f14347a110f2c3ea1967d44c772f4ebad036651
Contents?: true
Size: 898 Bytes
Versions: 2
Compression:
Stored size: 898 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexx-suit-0.1.0 | lib/tasks/check/pippi.rake |
hexx-suit-0.0.1 | lib/tasks/check/pippi.rake |