require 'gem2deb/rake/testtask'

Gem2Deb::Rake::TestTask.new do |t|
  t.libs = ['test']
  all_tests = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb']

  # Exclude the Test::Unit integration test that deliberately enforces
  # require 'test/unit' before require 'mocha/test_unit'. gem2deb's generic
  # test runner can't satisfy that ordering, and upstream doesn't run this
  # file in their normal CI anyway (they're all Minitest).
  t.test_files = all_tests.exclude('test/integration/test_unit_test.rb')
end
