Skip to content

Commit

Permalink
test: use Rake::TestTask instead of a custom rake task
Browse files Browse the repository at this point in the history
I would have used Minitest::TestTask but we're still running CI on
Ruby 2.3.
  • Loading branch information
flavorjones committed May 30, 2024
1 parent f1fcc7b commit 8d1bab9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
require "rake/clean"
require "bundler/gem_tasks"
require "rake/testtask"

namespace :test do
desc "Test MiniPortile by running unit tests"
task :unit do
sh "ruby -w -W2 -I. -Ilib -e \"#{Dir["test/test_*.rb"].map { |f| "require '#{f}';" }.join}\" -- #{ENV["TESTOPTS"]} -v"
end
Rake::TestTask.new("test:unit")

namespace :test do
desc "Test MiniPortile by compiling examples"
task :examples do
Dir.chdir("examples") do
Expand Down

0 comments on commit 8d1bab9

Please sign in to comment.