From f3523d24baa8f130fc61e55684bd2266835d72b1 Mon Sep 17 00:00:00 2001 From: Todd Fisher Date: Sat, 25 Feb 2023 13:19:02 -0500 Subject: [PATCH] add a default test task this way running "rake" will execute the tests --- bindings/ruby/Rakefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bindings/ruby/Rakefile b/bindings/ruby/Rakefile index 2ba61ac..20d99df 100644 --- a/bindings/ruby/Rakefile +++ b/bindings/ruby/Rakefile @@ -1,4 +1,5 @@ require 'erb' +require 'rake/testtask' require 'rubygems/package' BUILD_VERSION=1 @@ -9,6 +10,14 @@ else CURRENT_VERSION = "0.0.0.#{BUILD_VERSION}" end +desc "Default Task (Test project)" +task :default => :test + +Rake::TestTask.new(:test) do |t| + t.test_files = FileList['tests/test_*.rb'] + t.verbose = false +end + desc 'Generate gem specification' task :gemspec do system("cp ../../LICENSE .")