Skip to content

Instantly share code, notes, and snippets.

@britishtea
Created April 11, 2016 11:39
Show Gist options
  • Save britishtea/3c29e26e3d5043d0b8d04c4d83b3333f to your computer and use it in GitHub Desktop.
Save britishtea/3c29e26e3d5043d0b8d04c4d83b3333f to your computer and use it in GitHub Desktop.
require "simplecov"
SimpleCov.command_name "unit:#{Process.pid}"
SimpleCov.at_exit do
orig, $stdout = $stdout, File.open("/dev/null", "w")
SimpleCov.result.format!
$stdout, orig = orig, nil
end
SimpleCov.start
$:.unshift File.expand_path("../../", __FILE__)
require "cutest"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment