1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Create rake task to test all

This commit is contained in:
Takashi Kokubun 2015-10-24 21:18:48 +09:00
parent a543be586b
commit 26942e24c2

View file

@ -31,6 +31,16 @@ namespace :hamlit do
end
task default: 'hamlit:test'
Rake::TestTask.new do |t|
t.libs << 'lib' << 'test'
files = Dir['test/hamlit/**/*_test.rb']
files += Dir['test/haml/*_test.rb']
files << 'test/haml/haml-spec/*_test.rb'
t.ruby_opts = %w[-rtest_helper]
t.test_files = files
t.verbose = true
end
Rake::TestTask.new(:spec) do |t|
t.libs << 'lib' << 'test'
t.ruby_opts = %w[-rtest_helper]