Skip to content

Instantly share code, notes, and snippets.

@srih4ri
Created November 2, 2012 18:52
Show Gist options
  • Save srih4ri/4003568 to your computer and use it in GitHub Desktop.
Save srih4ri/4003568 to your computer and use it in GitHub Desktop.
Ruby-tests for ruby-roxml
task :test do
require 'rake/runtest'
$: << 'lib' << '.'
Rake.run_tests 'test/unit/*_test.rb'
end
namespace :test do
desc "Test ROXML under the Nokogiri parser"
task :nokogiri do
$LOAD_PATH << '.'
require 'spec/support/nokogiri'
Rake::Task["test"].invoke
end
desc "Test ROXML under the LibXML parser"
task :libxml do
$LOAD_PATH << '.'
require 'spec/support/libxml'
Rake::Task["test"].invoke
end
end
task :default => ['test:nokogiri','test:libxml']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment