Skip to content
Browse files

add a rake task to run all tests

  • Loading branch information...
1 parent a65eaf8 commit 4a4295e78b09306838b7640ba33798c040de2008 @chrislo chrislo committed
Showing with 10 additions and 5 deletions.
  1. +10 −5 Rakefile
View
15 Rakefile
@@ -1,13 +1,18 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+require 'rake/testtask'
-desc "Run all tests"
-task :test do
- # sh "ruby test/sparse_vector_test.rb"
- sh "ruby test/sparse_matrix_test.rb"
+task :default => [:test]
+
+desc "Run tests"
+Rake::TestTask.new do |t|
+ t.libs << "lib"
+ t.libs << "test"
+ t.test_files = FileList['test/*_test.rb']
+ t.verbose = true
end
desc "Run benchmarks"
task :benchmark do
sh "ruby test/benchmark.rb"
-end
+end

0 comments on commit 4a4295e

Please sign in to comment.
Something went wrong with that request. Please try again.