Skip to content

Commit

Permalink
Merge pull request #21 from ruby/test-unit
Browse files Browse the repository at this point in the history
Switch to use test-unit gem
  • Loading branch information
hsbt authored Feb 3, 2021
2 parents 75fb62a + 7d3fc1f commit cf4a3a1
Show file tree
Hide file tree
Showing 14 changed files with 558 additions and 3,666 deletions.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in zlib.gemspec
gemspec

gem "bundler"
gem "test-unit"
gem "rake"
gem "rake-compiler"
13 changes: 10 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test" << "test/lib"
t.libs << "lib"
t.test_files = FileList['test/**/test_*.rb']
t.libs << "test/lib"
t.ruby_opts << "-rhelper"
t.test_files = FileList["test/**/test_*.rb"]
end

task :sync_tool do
require 'fileutils'
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
end

require 'rake/extensiontask'
Expand Down
Loading

0 comments on commit cf4a3a1

Please sign in to comment.