From f4492cf8cde8dbd4e55e7f3da4e9d5a6295cc611 Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Sat, 26 Jan 2019 15:10:05 -0500 Subject: [PATCH] Use rake to run tests --- .gitignore | 2 ++ .vscode/settings.json | 2 +- Rakefile | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Rakefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2fb4efe --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp +*.gem \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 08db616..ad649f7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "code-runner.customCommand": "ruby test/mutual_recursion_test.rb", + "code-runner.customCommand": "rake test", "code-runner.runInTerminal": true } \ No newline at end of file diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..283c52f --- /dev/null +++ b/Rakefile @@ -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