Use rake to run tests

This commit is contained in:
Mike Cifelli 2019-01-26 15:10:05 -05:00
parent 5959e9dc8d
commit f4492cf8cd
3 changed files with 13 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.swp
*.gem

View File

@ -1,4 +1,4 @@
{
"code-runner.customCommand": "ruby test/mutual_recursion_test.rb",
"code-runner.customCommand": "rake test",
"code-runner.runInTerminal": true
}

10
Rakefile Normal file
View File

@ -0,0 +1,10 @@
# frozen_string_literal: true
require 'rake/testtask'
desc 'Run tests'
task default: 'test'
Rake::TestTask.new do |t|
t.test_files = FileList['test/*_test.rb']
end