sped up the execution test a good deal by running it all in one pass

This commit is contained in:
Jeremy Ashkenas
2009-12-24 22:29:30 -08:00
parent beae912a91
commit d8ceb3b4bb
2 changed files with 23 additions and 25 deletions

View File

@@ -3,13 +3,11 @@ require 'test_helper'
class ExecutionTest < Test::Unit::TestCase
NO_WARNINGS = /\A(0 error\(s\), 0 warning\(s\)\n)+\Z/
ALLS_WELL = /\A\n?(true\n)+\Z/
def test_execution_of_coffeescript
Dir['test/fixtures/execution/*.cs'].each do |source|
suceeded = `bin/cs #{source}`.chomp.to_sym == :true
puts "failed: #{source}" unless suceeded
assert suceeded
end
sources = ['test/fixtures/execution/*.cs'].join(' ')
assert `bin/cs #{sources}`.match(ALLS_WELL)
end
def test_lintless_coffeescript