Sha256: 44e7c06fda611e2ad61cad64a2586c31589ef278f56107af2b6aadc4852ffbcd

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

#!/usr/bin/env ruby

root = File.expand_path("../..", __FILE__)
Dir.chdir root

port = ARGV[0] || 4000

pid = fork do
  $stderr.reopen "/dev/null" # silence WEBrick output
  exec 'bundle', 'exec', 'rackup', '-p', port.to_s
end
sleep 1

status = system('phantomjs', "#{root}/test/run-qunit.coffee", "http://localhost:#{port}/test/index.html")

Process.kill 'SIGINT', pid
Process.wait pid

exit status

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
deckar01-task_list-1.0.6 script/testsuite
deckar01-task_list-1.0.5 script/testsuite
deckar01-task_list-1.0.4 script/testsuite
deckar01-task_list-1.0.3 script/testsuite
task_list-1.0.2 script/testsuite