Rakefile in ripper_ruby_parser-1.0.0 vs Rakefile in ripper_ruby_parser-1.1.0
- old
+ new
@@ -1,11 +1,10 @@
require 'rake/clean'
require "bundler/gem_tasks"
require 'rake/testtask'
namespace :test do
-
Rake::TestTask.new(:unit) do |t|
t.libs = ['lib']
t.test_files = FileList['test/unit/*_test.rb']
t.warning = true
end
@@ -20,12 +19,13 @@
t.libs = ['lib']
t.test_files = FileList['test/pt_testcase/*_test.rb']
t.warning = true
end
- task :run => [:unit, :end_to_end, :pt_testcase]
+ desc "Run all three test suites"
+ task run: [:unit, :end_to_end, :pt_testcase]
end
desc 'Alias to test:run'
-task :test => 'test:run'
+task test: 'test:run'
-task :default => :test
+task default: :test