Skip to content

Commit

Permalink
fix test building
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 31, 2010
1 parent 7269c96 commit 7c0f4d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,19 @@ end

# Tests

file 'test/unit/tmp' => Dir['test/unit/*.js'] + [:unittest_js, :dist] do
file 'test/unit/tmp/tests' => Dir['test/unit/*.js'] + [:unittest_js, :dist] do
FileUtils.mkdir_p File.dirname('test/unit/tmp/tests')

builder = UnittestJS::Builder::SuiteBuilder.new({
:input_dir => "#{WYSIHAT_ROOT}/test/unit",
:assets_dir => "#{WYSIHAT_ROOT}/dist"
})
selected_tests = (ENV['TESTS'] || '').split(',')
builder.collect(*selected_tests)
builder.collect
builder.render
end

desc "Builds the distribution, runs the JavaScript unit tests and collects their results."
task :test => 'test/unit/tmp'
task :test => 'test/unit/tmp/tests'


# Vendored libs
Expand Down

0 comments on commit 7c0f4d1

Please sign in to comment.