Created
April 18, 2018 05:29
-
-
Save chriskottom/9660d3e5118c74255648c13857d5d81f to your computer and use it in GitHub Desktop.
Using the HtmlReport from Minitest::Reporters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rake/testtask" | |
Rake::TestTask.new(:test) do |t| | |
t.libs = %w(lib test) | |
t.pattern = 'test/**/*_test.rb' | |
end | |
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class ReporterTest < Minitest::Test | |
def test_a_thing | |
assert_equal(1, 1) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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