Created
November 2, 2012 18:52
-
-
Save srih4ri/4003568 to your computer and use it in GitHub Desktop.
Ruby-tests for ruby-roxml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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