tasks/test.rake in nanoc-3.7.4 vs tasks/test.rake in nanoc-3.7.5

- old
+ new

@@ -10,28 +10,27 @@ require 'test/helper' test_files = Dir["#{dir_glob}*_spec.rb"] + Dir["#{dir_glob}test_*.rb"] test_files.each { |f| require f } - exit MiniTest::Unit.new.run(ENV['ARGS'].split) + res = MiniTest::Unit.new.run(ENV['ARGS'].split) + exit(res) if res != 0 end namespace :test do - # test:all desc 'Run all tests' task :all do - run_tests "test/**/" + run_tests 'test/**/' end # test:... %w( base cli data_sources extra filters helpers tasks ).each do |dir| desc "Run all #{dir} tests" - task dir.to_sym do |task| + task dir.to_sym do |_task| run_tests "test/#{dir}/**/" end end - end -desc 'Alias for test:all' -task :test => [ :'test:all' ] +desc 'Alias for test:all + rubocop' +task test: [:'test:all', :rubocop]