Skip to content

Commit 758b7d9

Browse files
author
Naoto Ono
committed
use test-unit instead of minitest
1 parent 6f2168e commit 758b7d9

File tree

4 files changed

+13
-50
lines changed

4 files changed

+13
-50
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ gemspec
44

55
gem "rake"
66
gem "rake-compiler"
7-
gem "minitest", "~> 5.0"
7+
gem "test-unit", "~> 3.0"

bin/test-unit.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
2+
lib_dir = File.join(base_dir, "lib")
3+
test_dir = File.join(base_dir, "test")
4+
5+
$LOAD_PATH.unshift(lib_dir)
6+
7+
require 'test/unit'
8+
9+
exit Test::Unit::AutoRunner.run(true, test_dir)

test/minitest_runner.rb

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/support/test_case.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

3-
require 'minitest'
3+
require 'test/unit'
4+
require "tmpdir"
45

56
require_relative 'utils'
67
require_relative '../../lib/debug/test_console'
@@ -10,8 +11,7 @@ module DEBUGGER__
1011
#
1112
# Extends Minitest's base test case and provides defaults for all tests.
1213
#
13-
class TestCase < Minitest::Test
14-
make_my_diffs_pretty!
14+
class TestCase < Test::Unit::TestCase
1515
include TestUtils
1616

1717
def self.before_suite

0 commit comments

Comments
 (0)