ci-reporter/ci_reporter_minitest

View on GitHub
acceptance/minitest_example_test.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'minitest/autorun'

class ExampleWithAFailure < Minitest::Test
  def test_failure
    assert false
  end
end

class ExampleWithAnError < Minitest::Test
  def test_error
    raise "second failure"
  end
end

class ExampleThatPasses < Minitest::Test
  def test_passes
    assert true
  end
end

class ExampleWithOutput < Minitest::Test
  def test_stdout
    $stdout.puts "This is stdout!"
  end

  def test_stderr
    $stderr.puts "This is stderr!"
  end
end