Skip to content

Instantly share code, notes, and snippets.

@chriskottom
Created April 18, 2018 05:29
Show Gist options
  • Save chriskottom/9660d3e5118c74255648c13857d5d81f to your computer and use it in GitHub Desktop.
Save chriskottom/9660d3e5118c74255648c13857d5d81f to your computer and use it in GitHub Desktop.
Using the HtmlReport from Minitest::Reporters
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem 'rake'
gem 'minitest'
gem 'minitest-reporters'
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs = %w(lib test)
t.pattern = 'test/**/*_test.rb'
end
task :default => :test
require 'test_helper'
class ReporterTest < Minitest::Test
def test_a_thing
assert_equal(1, 1)
end
end
require 'minitest/autorun'
require 'minitest/reporters'
Minitest::Reporters.use! [Minitest::Reporters::HtmlReporter.new(:color => true)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment