gitlabhq/lib/tasks/dev/tests.rake
Dmitriy Zaporozhets 813814f02e Application cleanup
2012-08-17 09:09:11 +03:00

11 lines
289 B
Ruby

namespace :dev do
desc "DEV | Run cucumber and rspec"
task :tests do
["cucumber", "rspec spec"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end
end