Cleanup test rake tasks
This commit is contained in:
parent
b3a615f10a
commit
514c01bcb1
15
Rakefile
15
Rakefile
|
@ -1,13 +1,6 @@
|
|||
require 'bundler/gem_tasks'
|
||||
require 'rake/testtask'
|
||||
|
||||
begin
|
||||
origin, $stdout = $stdout, StringIO.new
|
||||
Bundler.require
|
||||
ensure
|
||||
$stdout = origin
|
||||
end
|
||||
|
||||
Dir['benchmark/*.rake'].each { |b| import(b) }
|
||||
|
||||
namespace :haml do
|
||||
|
@ -29,9 +22,9 @@ namespace :hamlit do
|
|||
t.verbose = true
|
||||
end
|
||||
end
|
||||
task default: 'hamlit:test'
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
namespace :test do
|
||||
Rake::TestTask.new(:all) do |t|
|
||||
t.libs << 'lib' << 'test'
|
||||
files = Dir['test/hamlit/**/*_test.rb']
|
||||
files += Dir['test/haml/*_test.rb']
|
||||
|
@ -48,7 +41,6 @@ Rake::TestTask.new(:spec) do |t|
|
|||
t.verbose = true
|
||||
end
|
||||
|
||||
namespace :test do
|
||||
Rake::TestTask.new(:engine) do |t|
|
||||
t.libs << 'lib' << 'test'
|
||||
t.ruby_opts = %w[-rtest_helper]
|
||||
|
@ -77,3 +69,6 @@ namespace :test do
|
|||
t.verbose = true
|
||||
end
|
||||
end
|
||||
|
||||
task default: %w[hamlit:test]
|
||||
task test: %w[test:all]
|
||||
|
|
|
@ -12,6 +12,9 @@ build:
|
|||
- script:
|
||||
name: clone hamlit1
|
||||
code: bin/clone
|
||||
- script:
|
||||
name: test all
|
||||
code: bundle exec rake test
|
||||
- script:
|
||||
name: "[benchmark] static attributes"
|
||||
code: bin/bench bench -t benchmark/boolean_attribute.haml benchmark/class_attribute.haml benchmark/id_attribute.haml benchmark/data_attribute.haml benchmark/common_attribute.haml
|
||||
|
|
Loading…
Reference in New Issue