Run test suite with both parsers

This commit is contained in:
Tristan Hume
2013-08-01 12:49:36 -04:00
parent f6eacbf875
commit 824231284c
5 changed files with 55 additions and 24 deletions
+14 -1
View File
@@ -7,12 +7,25 @@ require 'rubygems/package_task'
task :default => 'test'
Rake::TestTask.new(:test) do |t|
Rake::TestTask.new(:lax_test) do |t|
t.libs << '.' << 'lib' << 'test'
t.test_files = FileList['test/liquid/**/*_test.rb']
t.options = 'lax'
t.verbose = false
end
Rake::TestTask.new(:strict_test) do |t|
t.libs << '.' << 'lib' << 'test'
t.test_files = FileList['test/liquid/**/*_test.rb']
t.verbose = false
end
desc 'runs test suite with both strict and lax parsers'
task :test do
Rake::Task['lax_test'].invoke
Rake::Task['strict_test'].invoke
end
gemspec = eval(File.read('liquid.gemspec'))
Gem::PackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec