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:
parent
a543be586b
commit
26942e24c2
1 changed files with 10 additions and 0 deletions
10
Rakefile
10
Rakefile
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue