Sha256: a6bfc526aee63d6d5e3ac80b0194d3693d88e8962673f173f095f5663aee9405
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
#!/usr/bin/env ruby require "time" start_time = Time.now $LOAD_PATH.unshift(File.expand_path('../lib', __dir__)) require "pathname" require "matest" runner = Matest::Runner.runner ARGV.each do |file| runner.load_file(Pathname(file).expand_path) end runner.execute! time_elapsed = Time.now - start_time puts info = runner.info def spec_detail(info) info[:num_specs].map { |name, num| " #{num} #{name.downcase}." }.join("\n") end good_bye_message = <<-EOF ------------------------------------------ Specs: #{spec_detail(info)} EOF puts good_bye_message time_elapsed = Time.now - start_time puts "Elapsed: #{time_elapsed} seconds."
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
matest-0.2.0 | bin/mt |
matest-0.1.0 | bin/mt |