desc 'Runs a quick set of tests (the same as test:quick)'
task test: 'test:quick'

namespace :test do
  desc 'Run all tests except kitchen (which takes a long time)'
  task :quick do
    raise "tests failed" unless system 'bundle exec strainer test -e kitchen'
  end

  desc 'Run all tests, including kitchen'
  task :all do
    raise "tests failed" unless system 'bundle exec strainer test'
  end

  namespace :debug do
    desc 'Run all tests except kitchen, with debugging enabled'
    task :quick do
      raise "tests failed" unless system 'bundle exec strainer test -e kitchen --log-level=debug'
    end

    desc 'Run all tests, including kitchen, with debugging enabled'
    task :all do
      raise "tests failed" unless system 'bundle exec strainer test --log-level=debug'
    end
  end
end

desc 'Runs a quick set of tests (the same as test:quick)'
task test: 'test:quick'

namespace :test do
  desc 'Run all tests except kitchen (which takes a long time)'
  task :quick do
    fail 'tests failed' unless system 'bundle exec strainer test -e kitchen'
  end

  desc 'Run all tests, including kitchen'
  task :all do
    fail 'tests failed' unless system 'bundle exec strainer test'
  end

  namespace :debug do
    desc 'Run all tests except kitchen, with debugging enabled'
    task :quick do
      fail 'tests failed' \
        unless system 'bundle exec strainer test -e kitchen --log-level=debug'
    end

    desc 'Run all tests, including kitchen, with debugging enabled'
    task :all do
      fail 'tests failed' \
        unless system 'bundle exec strainer test --log-level=debug'
    end
  end
end

Fix rubocop errors in rake tasks
Fix rubocop errors in rake tasks
