Sha256: b9f754bd622fae9004fe45e0e8ec5f4f7a582c4184fb5bb0645955ac60601f02
Contents?: true
Size: 685 Bytes
Versions: 3
Compression:
Stored size: 685 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." exit(1) unless info[:success]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
matest-1.1.0 | bin/matest |
matest-1.0.1 | bin/mt |
matest-1.0.0 | bin/mt |