mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Run test suite with both parsers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user