Sha256: efa2209477125cccc2ba3960655901df3aa8323c5d3a26c882df160d5c775dba
Contents?: true
Size: 996 Bytes
Versions: 15
Compression:
Stored size: 996 Bytes
Contents
# We need to override hoe's test task in order to support separate REXML & LibXML testing require File.join(File.dirname(__FILE__), '../vendor/override_rake_task/lib/override_rake_task') Rake::TestTask.new(:bugs) do |t| t.libs << 'test' t.test_files = FileList['test/bugs/*_bugs.rb'] t.verbose = true end remove_task :test desc "Test ROXML using the default parser selection behavior" task :test do module ROXML SILENCE_XML_NAME_WARNING = true end require 'lib/roxml' require 'rake/runtest' Rake.run_tests $hoe.test_globs end namespace :test do desc "Test ROXML under the LibXML parser" task :libxml do module ROXML XML_PARSER = 'libxml' end Rake::Task["test"].invoke end desc "Test ROXML under the REXML parser" task :rexml do module ROXML XML_PARSER = 'rexml' end Rake::Task["test"].invoke end desc "Runs tests under RCOV" task :rcov do system "rcov -T --no-html -x '^/' #{FileList[$hoe.test_globs]}" end end
Version data entries
15 entries across 15 versions & 3 rubygems