Sha256: 9bd447921138f307cbfe2da1656cb5bc71fd91272b4b7ce1cf016a544c8d7141

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

require 'rake/testtask'
Rake::TestTask.new(:bugs) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/bugs/*_bugs.rb'
  test.verbose = true
end

desc "Test ROXML using the default parser selection behavior"
task :test do
  require 'rake/runtest'
  Rake.run_tests 'test/unit/*_test.rb'
end

namespace :test do
  desc "Test ROXML under the Nokogiri parser"
  task :nokogiri do
    module ROXML
      XML_PARSER = 'nokogiri'
    end
    Rake::Task["test"].invoke
  end

   desc "Test ROXML under the LibXML parser"
  task :libxml do
    module ROXML
      XML_PARSER = 'libxml'
    end
    Rake::Task["test"].invoke
  end

  desc "Runs tests under RCOV"
  task :rcov do
    system "rcov -T --no-html -x '^/'  #{FileList['test/unit/*_test.rb']}"
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
roxml-3.1.0 tasks/test.rake
ROXML-3.0.0 tasks/test.rake